admiralfreezbee has asked for the wisdom of the Perl Monks concerning the following question:
Now, once every 5 seconds I receive a message containing some relevant information whether or not to change my configuration.print("****************"); open(FH_END1, "$TCPDUMP -v -lnnet -i eth1 -s 1000|") || die; print("****************"); my $select = IO::Select->new(); $select->add(*FH_END1); while(1){ print("1"); while (my @ready = $select->can_read(5)){ print("2"); foreach my $fh (@ready){ my $line =<FH_END1> ; #check if line is valid and take some actions #....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Script with tcpdump freezes
by sgifford (Prior) on Apr 05, 2006 at 15:01 UTC | |
|
Re: Script with tcpdump freezes
by ikegami (Patriarch) on Apr 05, 2006 at 15:05 UTC | |
|
Re: Script with tcpdump freezes
by bowei_99 (Friar) on Apr 05, 2006 at 15:41 UTC |