gitarwmn has asked for the wisdom of the Perl Monks concerning the following question:

I've got a cgi script that I need to have call a cmd script in Windows XP. I've tried using the system function but it doesn't seem to be working correctly as the cmd file doesn't produce the output I expect.

Here is the code

my $builddir = "\\\\buildserver1\\c\$\\ScheduledBuilds\\Acme"; system "$builddir\\test.cmd";

The test.cmd file is supposed to produce an output text file but it only does so if I run it from a command line in Windows and not from my CGI script.
Anyone have any thoughts as to why this doesn't work?
Thanks

Replies are listed 'Best First'.
Re: calling another script
by Corion (Patriarch) on Jun 26, 2006 at 20:55 UTC

    Most likely, the user your webserver is configured to run your scripts as does not have access permissions to access the network resources. The error log of your webserver likely tells you more.