diff -r c77b9374f45c -r 48baf61cb888 lib/scripts/bash --- a/lib/scripts/bash Mon Sep 20 23:28:35 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -#!/usr/bin/env perl -# -# Author: Makarius -# -# bash - invoke shell command line (with robust signal handling) -# - -use warnings; -use strict; - - -# args - -my ($group, $script_name, $pid_name, $output_name) = @ARGV; - - -# process id - -if ($group eq "group") { - use POSIX "setsid"; - POSIX::setsid || die $!; -} - -open (PID_FILE, ">", $pid_name) || die $!; -print PID_FILE "$$"; -close PID_FILE; - - -# exec script - -exec qq/exec bash '$script_name' > '$output_name'/;