in reply to Re^2: Check udp stream coming in
in thread Check udp stream coming in
use strict; use warnings; open(my $tcp, "/usr/sbin/tcpdump |"); my $ok = undef; while(<$tcp>) { $ok = 1 if m/\w/; # your test here } print "All things groovy\n" if $ok;
|
|---|