Can i run a comand line in multiple sessions at once ?
by pigsfoot from LinuxQuestions.org on (#5T43M)
Hi,
I have an RPI that has three wlan interfaces wlan0, wlan1 & wlan2. Each interface is set to a different channel.
When running on a single interface i us eteh following cmmand
PHP Code:/usr/sbin/tcpdump -l -I -n -e -tt -i wlan0 type mgt subtype probe-req
What i woudl liek to do is run teh same command on all three interfaces.
I have read that i can use "-i any" but i get an error saying
Quote:
I presume its referring to eth0 and lo interfaces.
I have also tried
/usr/sbin/tcpdump -l -I -n -e -tt -i wlan0 type mgt subtype probe-req & /usr/sbin/tcpdump -l -I -n -e -tt -i wlan1 type mgt subtype probe-req & /usr/sbin/tcpdump -l -I -n -e -tt -i wlan2 type mgt subtype probe-req
But it pretty much kills the RPI and i get undervoltage errors plus no packets are captures on any interfaces.
Is there a way around this, can the command be run in three seperate sessions using different interfaces in each? It's also worth mentioing that i run this command via a python file which is triggered by a custome service i wrote. All works fine with a single interface, i just want to add more.
I have an RPI that has three wlan interfaces wlan0, wlan1 & wlan2. Each interface is set to a different channel.
When running on a single interface i us eteh following cmmand
PHP Code:/usr/sbin/tcpdump -l -I -n -e -tt -i wlan0 type mgt subtype probe-req
What i woudl liek to do is run teh same command on all three interfaces.
I have read that i can use "-i any" but i get an error saying
Quote:
"tcpdump: any: That device doesn't support monitor mode" |
I have also tried
/usr/sbin/tcpdump -l -I -n -e -tt -i wlan0 type mgt subtype probe-req & /usr/sbin/tcpdump -l -I -n -e -tt -i wlan1 type mgt subtype probe-req & /usr/sbin/tcpdump -l -I -n -e -tt -i wlan2 type mgt subtype probe-req
But it pretty much kills the RPI and i get undervoltage errors plus no packets are captures on any interfaces.
Is there a way around this, can the command be run in three seperate sessions using different interfaces in each? It's also worth mentioing that i run this command via a python file which is triggered by a custome service i wrote. All works fine with a single interface, i just want to add more.