Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Unable to run batch file in CGI Script

by venkatesan_G02 (Sexton)
on Sep 23, 2009 at 16:13 UTC ( [id://797015]=note: print w/replies, xml ) Need Help??


in reply to Unable to run batch file in CGI Script

Hi, i finally made the CGI script to open the batch file using
system('C:\\Server\\Apache\\cgi-bin\\test.bat');
The problem now is its printing whatever is written in the batch file but not executing it.

The error log says "Not enough storage is available to process this command.\r "
What does this error mean?

Replies are listed 'Best First'.
Re^2: Unable to run batch file in CGI Script
by saberworks (Curate) on Sep 23, 2009 at 16:21 UTC
    Maybe you can't start a batch file directly, maybe you have to say system('cmd.exe _path_to_batch_file');
      I tried by placing the test.bat file in the C:\Windows\system32 folder and changing thesystem command to "system('cmd.exe test.bat'); but i am getting "Premature ending of headers" error. But the same program is working when executed through command prompt.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://797015]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found