faqts : Computers : Programming : Languages : Perl

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 25 people (28%) answered Yes
Recently 3 of 10 people (30%) answered Yes


How can I execute a Perl script in the background on a server from a web page?

Dec 1st, 2004 09:16
Nat Tuck, Brady F,

Here's a cgi script that will do that on Unix:
perl script.pl &
echo "Content-type: text/plain"
echo "You win a background process"
If you need to do it from a perl cgi,
system("perl script.pl &")
works fine.