CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
"#exec cmd" producing Win32 err 192 Not valid app?

 



S_Shrum
User

Feb 27, 2001, 12:55 PM

Post #1 of 2 (2120 views)
"#exec cmd" producing Win32 err 192 Not valid app? Can't Post

Now that I have enabled my Win2k IIS 5 to handle CMD calls, when the script is invoked I am getting back a Win32 error of 192 (Not a valid Win32 app); DUH!

Any ideas? TIA

Sean Shrum
sean@shrum.net
www.shrum.net


eskimo555
Deleted

Feb 28, 2001, 6:59 PM

Post #2 of 2 (2112 views)
Re: "#exec cmd" producing Win32 err 192 Not valid app? [In reply to] Can't Post

CMD
Runs a shell command. The CommandDescription parameter is a string that contains the full, physical path of the shell program, followed by any command-line parameters separated by spaces. If the full path is not specified, the Web server searches the system path. This directive is disabled by default because it poses a security risk to your Web site; for example, a user could run the format command to erase your hard disk. To enable it, add the SSIEnableCmdDirective entry to the registry and set the value to TRUE. For general information on using the registry, see Registry.

SSIEnableCmdDirective
REG_DWORD
Range: 0, 1
Default:0 (disabled)
To execute shell commands, the #exec cmd directive of server-side includes is used. Security-conscious sites may wish to disable the #exec cmd directive by setting this value to 0 as an added security precaution, especially when untrusted parties are allowed to place files on the server. This value does not exist in the registry by default; to allow this directive to execute shell commands, you must first create the value and set it to 1.


www.ArthurDerks.com


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives