Start it with wperl.exe instead of perl.exe, assuming that you have ActiveState Perl.
Your users still can kill this task via the task manager or other programs if they have the according privileges. You should consider running your programs as a different user than the logged on user if you want to prevent that.
Perhaps a silly question, but is wperl.exe on the path and accessable to the user?
In the CB bart suggested looking at node 192421 and further commented "open2 and open3 work, too.".
Kudos to bart.
system(1,"/path/to/real/script.pl");On Windows, the leading 1 should cause the script to run in the background, and your foreground script can immediately exit. Untested, but worth a try anyways...
perlmonks.org content © perlmonks.org and beretboy, Corion, GrandFather, sgifford
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03