I tried use Apache::SubProcess, i install Apache-SubProcess-0.02 and i change the script:
 
use Apache qw(exit);
use Apache::SubProcess qw(system exec);
use CGI qw/:standard :html3/;
+
+
+
system("listarprograma.pl");
 
The following error is displayed in the Apache error_log :
[Tue Jul 31 21:23:43 2001] [error] (2)No such file or directory: Apache::SubProcess exec of listarprograma.pl failed
But listarprograma.pl is in the current directory of the script running.
 
I tried put the complete PATH
system("/home/masilva/local/apachelocal/cgi-bin/perl/ag1/listarprograma.pl");
 
[Tue Jul 31 21:31:55 2001] [error] (2)No such file or directory: Apache::SubProcess exec of /home/masilva/local/apachel
ocal/cgi-bin/perl/ag1/listarprograma.pl failed
 
Anybody can help-me.
 
Thank you
----- Original Message -----
Sent: Tuesday, July 31, 2001 8:21 PM
Subject: system()/exec() ?

    Hi
    I see an discussion in April by Mike Austin, about utilization of exec and system commands with mod_perl.
    Anybody know if is possible to use system and exec commands, because i tried use it, but the script donīt execute and apache display nothing in the logs/error_log
 
    thank you

Reply via email to