in reply to Keeping a loop alive
while(1) { open(IN, "tcpdump -nelttti pflog0 2>&1 |"); while (<IN>) { $sth->execute($stuff); } close(IN); }
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Keeping a loop alive
by fuzzyping (Chaplain) on May 31, 2003 at 16:12 UTC | |
by Aristotle (Chancellor) on May 31, 2003 at 16:17 UTC | |
by fuzzyping (Chaplain) on May 31, 2003 at 16:30 UTC |