Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Increasing the timeout of a system command in perl

by Random_Walk (Prior)
on Jan 07, 2014 at 11:48 UTC ( [id://1069650]=note: print w/replies, xml ) Need Help??


in reply to Increasing the timeout of a system command in perl

There is no 'timeout' on a system command. If it hangs forever, Perl will wait forever. Are you sure collect_stats is completing OK? Perhaps you could open it with a pipe for stdout, and use a while loop to print out the lines as you get them. If you try using the while loop, use $|++ to disable buffering.

If you post an example of working code, that exhibits your problem, then you may get a more useful reply

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found