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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



afinistre
Deleted

May 21, 2001, 9:09 AM

Post #1 of 2 (437 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?



Cure
User

May 26, 2001, 10:32 PM

Post #2 of 2 (425 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


Cure


 
 


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

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