Mike,
I am not a guru in that, but scripts running from under IIS 
are running under different NT account than thos that run from your DOS-prompt.
When you are in DOS-prompt, the scripts have all the permissions
you yourself have.
When in IIS, it is something like "Nobody" (not sure on exact technical term
here.)
Anyway, my understanding is that you need to give certain
permissions to THAT account for these things to work.

I realize this is vague, but hope it helps.
Eugene Haimov.

-----Original Message-----
From: Mike Brzezinski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 7:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Running a batchfile from CGI on Win2k server


I'd like to thank everybody for their input, so far, on this issue.  Here is
a list of ideas you have provided and the results:
        Try using backticks  -  tried it, didn't work.
        Try declaring the full path to cmd.exe and the batchfile -  tried,
didn't work.
        Write a webserver in Perl -  not planning on trying :)

Again, this was a problem running a batchfile from W2K server running
IIS5.0.  The same script works fine on W2K Pro.  And I have not problems
with other CGI scripts or running system calls with system() or backticks in
non-CGI scripts.  For example I can create a script like:
        system(my.bat);  #batchfile runs
        `my.bat`;            #same

But every time I put similar code in a CGI script the page just hangs and
times out eventually.  I've been unable to find any errors logged.
I tend to side with Henrik's opinion and think it is security related, but
I'll be damned if I can figure out why.  I've even tried some very unsecure
things with permissions just to try to get this thing running.  

Can anybody figure out a solution to this?  To me, this seems to be a rather
significant problem, that others must be seeing as well.  



This email may contain material that is confidential and provided for the
sole use of the intended recipient.� Any forwarding or distribution of this
email to others or review of this email by others without express permission
is strictly prohibited.� If you are not the intended recipient, please
contact the sender and delete all copies.

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to