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:
Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3

 



S_Shrum
User

Apr 12, 2001, 10:35 AM

Post #1 of 5 (1831 views)
Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3 Can't Post

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 to.

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:

<!--exec cmd="http://www.mydomain.net/cgi-bin/myscript.pl param1=test"-->

I tried full path names like:

<!--exec cmd="d:\data\website\cgi-bin\myscript.pl param1=test"-->

I even duplicatied the directory structure of the call itself and placed my scripts there to mimic the Unix structure like:

<!--exec cmd="/a/home/username/cgi-bin/myscript.pl param1=test"-->

...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

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


S_Shrum
User

Apr 23, 2001, 10:59 AM

Post #2 of 5 (1816 views)
Re: Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3 [In reply to] Can't Post

Still not working...if anyone has any ideas....PLEAZZZZE!!!

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


Jasmine
Administrator / Moderator

Apr 23, 2001, 7:11 PM

Post #3 of 5 (1811 views)
Re: Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3 [In reply to] Can't Post

Don't know about Win2k, NT or IIS, but exec cmd calls have a # preceeding the exec cgi command.




widexl
Novice

Apr 24, 2001, 7:16 AM

Post #4 of 5 (1808 views)
Re: Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3 [In reply to] Can't Post

Try

<!--#exec cmd="/cgi-bin/myscript.pl?param1=test"-->
or
<!--#exec virtual cmd="/cgi-bin/myscript.pl?param1=test"-->

I don't now for sure, but i think you need the root from the webserver. not the root of the system.

And try the Apache for win32 as webserver.




S_Shrum
User

May 1, 2001, 5:47 PM

Post #5 of 5 (1790 views)
Re: Win2kpro w/ IIS 5 and Activestate PERL - EXEC CMD & Win32 error code 3 [In reply to] Can't Post

The exec calls all have the # preceding them. I am going to try the "#exec virtual cmd" thing tonight that someone suggested. Hopefully that will do the trick

(fingers-crossed)

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

 
 


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

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