Running a PERL script from a PERL CGI

2007-02-07 Thread Philippe de Rochambeau
Hello, I would like to run a PERL script, which uses Net::FTP to retrieve a file and Mail::Sender to send it by email, from a PERL CGI. Unfortunately, the second script never works (script_that_retrieves_a_file_by_ftp_and_sends_it_by_email.pl below), probably because the CGI ends before

Re: Running a PERL script from a PERL CGI

2007-02-07 Thread Ken Williams
On Feb 7, 2007, at 4:33 PM, Philippe de Rochambeau wrote: if (param()) { my $ret = ` perl script_that_retrieves_a_file_by_ftp_and_sends_it_by_email.pl `; Try losing the double quotes. Methinks that long-named script isn't even running. -Ken

Re: Running a PERL script from a PERL CGI

2007-02-07 Thread Sherm Pendley
On Feb 7, 2007, at 10:19 PM, Ken Williams wrote: On Feb 7, 2007, at 4:33 PM, Philippe de Rochambeau wrote: if (param()) { my $ret = ` perl script_that_retrieves_a_file_by_ftp_and_sends_it_by_email.pl `; Try losing the double quotes. Methinks that long-named script isn't even running.