author | haftmann |
Wed, 20 Feb 2008 14:52:38 +0100 | |
changeset 26101 | a657683e902a |
parent 26096 | 783f957dcb01 |
child 26107 | 4b5e5fc1d11f |
permissions | -rw-r--r-- |
# # $Id$ # Author: Makarius # # system.pl - invoke shell command line (with robust signal handling) # # args ($group, $script_name, $pid_name, $output_name) = @ARGV; # process id if ($group eq "group") { use POSIX "setsid"; POSIX::setsid, "\n" || die $!; } open (PID_FILE, ">", $pid_name) || die $!; print PID_FILE "$$\n"; close PID_FILE; # exec script $SIG{'INT'} = "DEFAULT"; #paranoia setting, required for Cygwin exec qq/exec bash '$script_name' > '$output_name'/;