Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Backticks and SIGALRM

by sgt (Chaplain)
on Aug 20, 2007 at 13:34 UTC ( #633822=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Backticks and SIGALRM
in thread Backticks and SIGALRM

as you are using qx() (which gets the full output anyway) maybe you can simply redirect the output of your external command to a file (using the system shell and process that later

my $cmd = "$ext_cmd > $my_output"; # using unixlike shell system($cmd) == 0 or die; #

(ignore if your OS is not unixlike) what does happen if you manually send SIGALRM to that external process? (wrap it in a shell if the execution time is too short).

cheers --stephan


Comment on Re^4: Backticks and SIGALRM
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2014-11-27 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (183 votes), past polls