LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Run a script in a new tab (https://www.linuxquestions.org/questions/linux-newbie-8/run-a-script-in-a-new-tab-700650/)

nanderh 01-28-2009 06:42 PM

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?

rabbit2345 01-28-2009 06:49 PM

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 ^_^

i92guboj 01-28-2009 09:27 PM

Quote:

Originally Posted by nanderh (Post 3424599)
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.


All times are GMT -5. The time now is 11:41 AM.