Re: Perl executing a command (on UNIX)
- From: gil <gil.kovary@xxxxxxxxx>
- Date: Tue, 14 Aug 2007 12:38:50 -0000
On Aug 14, 7:20 am, xhos...@xxxxxxxxx wrote:
gil <gil.kov...@xxxxxxxxx> wrote:
Hi,
I'm new at perl programming,
I'd like to execute a UNIX command, which takes no longer than
$time_out seconds.
What do you want to happen when the $time_out seconds has expired?
Is there any easy way to do it, or do I have to use SIGs?
IPC::Run might be useful. It also might be overkill for a simple timeout,
though. But probably easier than handling it all yourself with fork
and alarm and kill and whatnot.
Xho
--
--------------------http://NewsReader.Com/--------------------
Usenet Newsgroup Service $9.95/Month 30GB
Thanks! exactly what I was looking for (just want the execution to
terminate).
Gil
.
- References:
- Perl executing a command (on UNIX)
- From: gil
- Re: Perl executing a command (on UNIX)
- From: xhoster
- Perl executing a command (on UNIX)
- Prev by Date: Re: Pagination II
- Next by Date: Re: File::Find problem?
- Previous by thread: Re: Perl executing a command (on UNIX)
- Next by thread: PERL Skipping a Call to a Sub.
- Index(es):
Relevant Pages
|