Perl: the Markov chain saw | |
PerlMonks |
Re: Increasing the timeout of a system command in perlby Random_Walk (Prior) |
on Jan 07, 2014 at 11:48 UTC ( [id://1069650]=note: print w/replies, xml ) | Need Help?? |
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,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|