Re: system()/exec() ?

2001-08-01 Thread Mauricio Amorim
I use the Apache::SubProcess, but system/exec for a script in perl, how: system script.pl; It only work if i write: system /usr/xxx/perl script.pl; In this manner, occurred an error with the request method in the script (CGI) called (script.pl). That's right ? - Original Message

Re: system()/exec() ?

2001-08-01 Thread Aaron Kennedy
always found this a little extreme. My prefered solution is to use a perl module called Apache::SubProcess (search on CPAN) which redefines system()/exec() to work from within a mod_perl script. Cheers, Aaron On Tue, 31 Jul 2001, Mauricio Amorim wrote: Hi I see an discussion

system()/exec() ?

2001-07-31 Thread Mauricio Amorim
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 scriptdon´t execute and apache display nothing in the logs/error_log thank you

Re: system()/exec() ?

2001-07-31 Thread Mauricio Amorim
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

Re: system()/exec() ?

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Mauricio Amorim wrote: I tried use Apache::SubProcess, i install Apache-SubProcess-0.02 and i change the script: http://perl.apache.org/guide/modules.html#Apache_SubProcess use Apache qw(exit); use Apache::SubProcess qw(system exec); use CGI qw/:standard :html3

Re: system()/exec() ?

2001-07-31 Thread Stas Bekman
On Tue, 31 Jul 2001, Mauricio Amorim wrote: 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

Re: system(), exec()?

2001-04-06 Thread Stas Bekman
On Thu, 5 Apr 2001, Mike Austin wrote: On Thu, 5 Apr 2001, Stas Bekman wrote: httpd.conf: PerlSetEnv PERL5OPT -Mops=system Doesn't work. I'm still able to use the system() call. Here's the stanza I used: Location /perl/ PerlSetEnv PERL5OPT -M-ops=system SetHandler

system(), exec()?

2001-04-05 Thread Mike Austin
Hi, I'm new to mod_perl, but I haven't been able to find an answer to this question. I'm used to mod_php4, and we use "safe_mode" to allow our developers to write applications, but restrict their access to files they don't own, and to stop them from using system() or exec() type calls. Is

Re: system(), exec()?

2001-04-05 Thread Robin Berjon
At 18:52 05/04/2001 -0700, Stas Bekman wrote: On Thu, 5 Apr 2001, Mike Austin wrote: I'm used to mod_php4, and we use "safe_mode" to allow our developers to write applications, but restrict their access to files they don't own, and to stop them from using system() or exec() type calls. Is

Re: system(), exec()?

2001-04-05 Thread Mike Austin
On Thu, 5 Apr 2001, Stas Bekman wrote: % perldoc ops % perldoc Opcode But this appears to be a global change, correct? Can I restict access to these commands for most directories, but still enable them for a few, trusted directories? " Since the ops pragma currently has an irreversible

Re: system(), exec()?

2001-04-05 Thread Stas Bekman
On Thu, 5 Apr 2001, Mike Austin wrote: On Thu, 5 Apr 2001, Stas Bekman wrote: % perldoc ops % perldoc Opcode But this appears to be a global change, correct? Can I restict access to these commands for most directories, but still enable them for a few, trusted directories? "