Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: capture output of tcpdump and PIDby thargas (Deacon) |
on May 25, 2012 at 11:30 UTC ( [id://972403]=note: print w/replies, xml ) | Need Help?? |
The problem with just adding the time-comparison to the loop is that if nothing comes from tcpdump, the loop hangs waiting for something and your timeout code is never invokes. At least not until after something does come in. Perhaps this is not an issue in your case.
In Section
Seekers of Perl Wisdom
|
|