LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 12-16-2021, 08:29 AM   #1
pigsfoot
LQ Newbie
 
Registered: Dec 2021
Posts: 9

Rep: Reputation: Disabled
Can i run a comand line in multiple sessions at once ?


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  -----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 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.
 
Old 12-16-2021, 12:47 PM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,602

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

Duplicate of https://www.linuxquestions.org/questions/linux-newbie-8/can-i-run-a-comand-line-in-multiple-sessions-at-once-4175705023

 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i run a comand line in multiple sessions at once ? pigsfoot Linux - Newbie 9 12-19-2021 06:02 PM
A downloader to run under the comand line interpreter. stf92 Slackware 5 08-30-2017 11:41 PM
how to run test.jsp file in comand line interface on Linux ramesh14 Linux - Software 3 07-05-2011 09:02 AM
Multiple Autologins; Multiple Users; Multiple Sessions mrclisdue Linux - Desktop 1 09-26-2007 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration