CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Problem with exec and apache



May 21, 2001, 9:09 AM

Post #1 of 2 (491 views)
Problem with exec and apache Can't Post

i have encountered a problem running the command exec() from a perl cgi. When i launch the script from the command line it works properly while, when i call the same script from apache (through a web client), i can't see the output of the exec() command on the browser.

has anybody suggestions?


May 26, 2001, 10:32 PM

Post #2 of 2 (479 views)
Re: Problem with exec and apache [In reply to] Can't Post

The exec function executes a system command and never returns-- use system instead of exec if you want it to return.
It fails and returns false only if the command does not exist and it is executed directly instead of via your system's



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives