barrytwy
asked on
Cannot run my exe in shtml files ?
I create an shtml file with the followings SSI commands
<!--#config cmdecho="ON" -->
<!--exec cmd="ping 127.0.0.1" -->
<!--exec cmd="temp.exe" -->
( temp.exe is an self-written exe files )
The browser returns
Invalid SSI Tag
The CMD option is not enabled for #EXEC calls
Have I missed something to set up ?
Please help
Barry
<!--#config cmdecho="ON" -->
<!--exec cmd="ping 127.0.0.1" -->
<!--exec cmd="temp.exe" -->
( temp.exe is an self-written exe files )
The browser returns
Invalid SSI Tag
The CMD option is not enabled for #EXEC calls
Have I missed something to set up ?
Please help
Barry
I don't know much about SSI, but to me, it looks like you forgot the "#"s.
Sounds like the system account used by the web server may need to have administrative access (or, at least, execute permissions) on the web server in order to run some commands via a exec cmd SSI. (See Note #2 at the bottom of the page whose URL Joakim gave above.)
Keep in mind that use of this exec cmd feature can be dangerous from a security perspective, if you're not very careful as to what commands you allow, who has access to modifying your content, etc.
More at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;203064
http://support.microsoft.com/default.aspx?kbid=233969
Keep in mind that use of this exec cmd feature can be dangerous from a security perspective, if you're not very careful as to what commands you allow, who has access to modifying your content, etc.
More at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;203064
http://support.microsoft.com/default.aspx?kbid=233969
Has this question been resolved?
I doubt that Joakim's comment was the answer, as if it were simply a case of missing "#"s, then the system would not have interpretted the comment tags as SSIs, so no SSI error message would have occurred. And the question did cite an SSI error message ("Invalid SSI Tag. The CMD option is not enabled for #EXEC calls") which specifically suggests that EXEC-CMD SSIs have not been enabled for the Web server in question. (See http://support.microsoft.com/kb/233969)
But, since barrytwy (the Asker) hasn't returned, we can't be sure what's going on from his perspective...
But, since barrytwy (the Asker) hasn't returned, we can't be sure what's going on from his perspective...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<!--#exec cmd="Path_to_file With_params" -->
For more information, you should probably read this article: http://www.ssi-developer.net/ssi/ssi-exec.shtml