Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3
I'm running Win2kPro, IIS 5.0, and ActiveState ActivePERL (latest)
I am trying to get CMD calls to work on my NT box at home where I do my initial development. Everything works great on the Unix host I send the pages to but produces a "Win32 error=3" which translates into path or directory not found. I attempted to duplicate the directory structures but still have the same problem.
I have gone through the IIS help and added the appropriate entry to the registry with a value of 1 to allow for EXEC CMD.
SSIEnableCmdDirective
REG_DWORD
Range: 0, 1
Default:0 (disabled)
The problem that I have now is that I am getting a Win32 error = 3 (path not found) error when my SHTML pages make the CMD calls.
I tried full URL calls like:
I tried full path names like:
I even duplicatied the directory structure of the call itself and placed my scripts there to mimic the Unix structure like:
...but I get the same result - error code 3.
Ultimately, I would like to set up my NT box up so that the SHTML pages do not need to be modified for my home NT intranet and the Unix box internet site.
TIA
mairving posted this at 13:05 — 26th July 2001.
They have: 2,256 posts
Joined: Feb 2001
First try running the script outside the browser to see if you get the same error. Second it may not be that your path of the script, it may be the path to Perl. If your web server depends on the PATH variable to find perl.exe, make sure that you put perl.exe in your system PATH, not just your user PATH.
Microsoft's site really didn't offer much help. I have found this ActivePERL site more helpful.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.