LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 01-28-2009, 06:42 PM   #1
nanderh
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Run a script in a new tab


I'm trying to make a script that automatically runs the aircrack suite for me.
Now it all goes well untill I want to have Airodump, Aireplay and Aircrack running at once.
I have tried it in multiple windows but as soon as aircrack has found the key the window closes.
Now I am trying to do it in multiple tabs but how would I have to do that?
Did use dcop to open a new tab but it opens Aireplay in the old tab.

Code:
dcop konsole-12448 konsole newSession
aireplay-ng [...]
Instead of running in the new tab it runs in the old.

Do you guys know a way around this?
 
Old 01-28-2009, 06:49 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
well, if you're using the KDE terminal, konsole, then all you have to do is clikc that button at the bottom left hand corner. If you're running straight from command-line, then press Ctrl+Alt+F1. This takes you to a new tty port. Just press Ctrl+Alt+F7 to return to your X session.

good luck,
rabbit2345 ^_^

Last edited by rabbit2345; 01-28-2009 at 07:33 PM.
 
Old 01-28-2009, 09:27 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by nanderh View Post
I'm trying to make a script that automatically runs the aircrack suite for me.
Now it all goes well untill I want to have Airodump, Aireplay and Aircrack running at once.
I have tried it in multiple windows but as soon as aircrack has found the key the window closes.
There are a number of ways to work around this. I can use ls as an example to show you a couple of them:

Code:
xterm -e bash -c  '(ls -l; read)'
Code:
urxvt -hold -e ls -l
The first way is generic enough that it should work on any terminal. The second one uses a specific feature of urxvt that keeps it from closing the terminal when it's done until you close it manually.

Quote:
Now I am trying to do it in multiple tabs but how would I have to do that?
Did use dcop to open a new tab but it opens Aireplay in the old tab.

Code:
dcop konsole-12448 konsole newSession
aireplay-ng [...]
Instead of running in the new tab it runs in the old.

Do you guys know a way around this?
I haven't konsole installed to test, but unless it has a proper dcop interface that can be used to launch something into a tab then you are out of luck. It's been long since I used konsole and I have no idea about its current state.

However, it might also be possible to open a new tab of konsole using some parameter for konsole from the command line, it might worth a shot to investigate that way as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Tab in bash script Bobb3 Linux - Newbie 12 10-25-2013 02:42 AM
Tab-Completion in bash script Buto Linux - General 1 12-04-2007 06:50 PM
Bash script using tab complete sadarax Programming 6 01-30-2007 08:21 PM
What console cmd can run a html in new tab in firefox? kornerr Linux - General 3 04-04-2006 10:50 AM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 09:34 AM

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

All times are GMT -5. The time now is 08:24 AM.

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