Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using 'system' function

Status
Not open for further replies.

Grazer

Programmer
Sep 6, 2001
28
0
0
GB
hi,

I am trying to call a script from a cgi page using the system function. ie

system("c:\\scripts\\bla.vbs bla"); #where bla is an argumen

But the cgi just ignores this line totally, and doesn't do anything. It works perfectly from the command line. But from the web, it just ignores.

Does anybody know why?

Thanks.
 
system ('perl c:\scripts\bla.pl');

under windows you need to indicate what program should execute you script.
 
Except that the program he's trying to run is .vbs, not .pl, so it's probably not a perl program. If it was a perl program he could just do it instead of using a system call. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top