Hello,
What if you want a PHP web page to launch a Perl script but keep it in the background- don't have PHP wait around for its output. I have a PHP page that is supposed to launch a perl script that sends a bunch of email and does database work and I don't want the page waiting around for perl to finish.
Here is the line I use to launch the perl script. (The & is supposed to spawn its own process, yet PHP insists on waiting for the script to complete!)
$cmd = "/usr/bin/perl $perl_path/process_email.pl &> $perl_path/error";
system($cmd);
Any ideas?
thanks!
What if you want a PHP web page to launch a Perl script but keep it in the background- don't have PHP wait around for its output. I have a PHP page that is supposed to launch a perl script that sends a bunch of email and does database work and I don't want the page waiting around for perl to finish.
Here is the line I use to launch the perl script. (The & is supposed to spawn its own process, yet PHP insists on waiting for the script to complete!)
$cmd = "/usr/bin/perl $perl_path/process_email.pl &> $perl_path/error";
system($cmd);
Any ideas?
thanks!