N
Ninja67
I have a perl script that is run on the web, that in turn, calls
another external program.
I can get the script to work, but the perl insists on waiting for the
external program to complete before completing the script.
The external program is not generating output that needs to be shown to
the user and it can take up to 2 minutes to run which is too long to
ask a web user to wait.
How do I tell perl to execute an external program and not wait for it
to complete before continuing with the perl?
I'm running on an Apache server using Unix.
Here's the code that launches the program...
system ("$sas $home/$pname.sas -log $home/$pname.log -print
$home/$pname.lst -sasuser $home -work $home >/dev/null 2>/dev/null");
I'm thinking there must be an easy modification to this call to tell
perl to keep on trucking.
another external program.
I can get the script to work, but the perl insists on waiting for the
external program to complete before completing the script.
The external program is not generating output that needs to be shown to
the user and it can take up to 2 minutes to run which is too long to
ask a web user to wait.
How do I tell perl to execute an external program and not wait for it
to complete before continuing with the perl?
I'm running on an Apache server using Unix.
Here's the code that launches the program...
system ("$sas $home/$pname.sas -log $home/$pname.log -print
$home/$pname.lst -sasuser $home -work $home >/dev/null 2>/dev/null");
I'm thinking there must be an easy modification to this call to tell
perl to keep on trucking.