in reply to Re^2: calling external programs via cgi perl script
in thread calling external programs via cgi perl script

Sourcing a shell script from system() will not do anything more useful than just running the script using system() - if it works at all (not sure, since source isn't a command but a shell built-in). Also, a return value of -1 from system() indicated a failure to execute the provided command.

Anyway, that's still not enough information to help you fix the problem.

Does the CGI script run as expected from the command line? What is the exact line of code you're using to run the script?And most importantly, what's in the error logs?

  • Comment on Re^3: calling external programs via cgi perl script

Replies are listed 'Best First'.
Re^4: calling external programs via cgi perl script
by echoangel911 (Sexton) on Mar 23, 2007 at 02:49 UTC
    My CGI script runs fine from the command line. Still shows nothing and value -1 from the system call. i just run ./myscript.cgi I don't see any error logs...