[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Question for perl gurus
- Subject: [ale] Question for perl gurus
- From: z.yu at voicecom.com (Jerry Z. Yu)
- Date: Wed, 5 Mar 2003 13:00:48 -0500 (EST)
Proc::Background module is a better one.
------------- quotes from its man page -------------------
NAME
Proc::Background - Generic interface to Unix and Win32
background process management
SYNOPSIS
use Proc::Background;
timeout_system($seconds, $command, $arg1);
timeout_system($seconds, "$command $arg1");
my $proc1 = Proc::Background->new($command, $arg1, $arg2);
my $proc2 = Proc::Background->new("$command $arg1 1>&2");
$proc1->alive;
$proc1->die;
$proc1->wait;
my $time1 = $proc1->start_time;
my $time2 = $proc1->end_time;
On 5 Mar 2003, Fletch wrote:
#
#This is going to sound strange from me, but rather than doing it in
#perl look for the expect timed-run utility.
#
#
#Not that you couldn't do it in perl. If you want to go that route
#look for the IPC::Run module from CPAN, and read perldoc perlipc for
#how to use alarm().
#
#--
#Fletch | "If you find my answers frightening, __`'/|
#fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
#770 294-0820 (m) | scary questions." -- Jules =(___)=
# | U
#_______________________________________________
#Ale mailing list
#Ale at ale.org
#http://www.ale.org/mailman/listinfo/ale
#
Jerry Z. Yu +1-404-487-8544 (O)
systems engineer z.yu at voicecom.com
is support, voicecom, llc www.voicecom.com
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale