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, 07: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, 07:49 PM   #2
rabbit2345
Member
 
Registered: Apr 2007
Location: 中国上海
Distribution: openSUSE 11.3
Posts: 371

Rep: Reputation: 40
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 08:33 PM.
 
Old 01-28-2009, 10:27 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

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


All times are GMT -5. The time now is 12:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration