in reply to Re: capture output of tcpdump and PID
in thread capture output of tcpdump and PID
Thanks, i also tried another way to stop the process, and it's quite simple... i just close(LABEL)
I also tried the alarm code, and it works
The alarm code isn't somehow similar to this:
open (CAPTURE,"sudo /usr/sbin/tcpdump -i wlan0 |"); $startTime = time(); while ( $line = <CAPTURE> ) { ### some code $endTime = time(); $t = $endTime - $startTime; if($t>10) { close(CAPTURE); last; } }
how could i pause at regular intervals the tcpdump process to switch between wifi channels 1, 6, 11 without stopping (closing) the pipe ?
Any idea would be appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: capture output of tcpdump and PID
by aaron_baugher (Curate) on May 24, 2012 at 18:29 UTC | |
|
Re^3: capture output of tcpdump and PID
by thargas (Deacon) on May 25, 2012 at 11:30 UTC |