Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Timing out shell commands (paranoia)

by bluto (Curate)
on May 02, 2001 at 04:02 UTC ( #77188=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval {
        local $SIG{ALRM} = sub { die "TIMEDOUT" };
    ...
        ...
    }
    ...
    
  2. or download this
    $pid = open(PIPE, "$command |") or die $!;
    eval {
    ...
        close(PIPE);  ## needed??
        $? ||= 9;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://77188]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (16)
As of 2014-09-23 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (227 votes), past polls