stop after N matches
Brought to you by:
jpr5
Hi,
is there a way to have ngrep exiting after N packets that are matching the expression (and not exiting after n first packets)
I am willing to trigger some network event using ngrep, and then run some shell script so some "ngrep --stop-after-match 1 'event' && ./script"