How do I get 2+ Terminals in BASH script....
Hi.
I am making a bash script. I have captured user input like so... Quote:
I tried: Quote:
How do I make it so that I can make a new Terminal, or allow more commands to take place on the current one, allow the output from airodump-ng to be shown, and keep the caught user input? I'm using Ubuntu 9.10, GNOME and would like it so that anyone with a GUI Terminal, Konsole or whatever can execute the script successfully. I'm confused...I looked up on Googe and couldn't find anything! Just "Beginners guide to Bash Scripting" and "How to BASH script" but nothing relevant that answere my question! Thank You in Advance. |
try
Code:
#! /bin/bash But there is probably a better, more advanced (and more complex to script) solution to the problem you face - namely, to show the output of airodump while accepting more inputs. |
It brought up two terminals at once but still stops on the first Terminal and nothing happens on the second one...
|
Did you try to use gnome-terminal with "-e" option? Can you explain more details about your purpose?
|
OK, you are missing a quote, but I'm guessing that you aren't in your "real" script. Also, you don't need to echo then read, you can set a prompt in read.
Code:
#!/bin/bash HTH Forrest |
Hello, I have tried all your suggestion and read man pages and websites and STILL can't figure it out. If it helps, airodump-ng takes the title and full control of the Terminal, as its a running command, like the command 'top', and doesn't stop until user intervention.
I will attach my embarassingly bad script below (its my first 'real' one, and I am using aircrack-ng for it because its something I know the commands and syntax to). Hopefully this makes more sense. I have to allow the airodump-ng command to be visible on the first terminal, and the rest of the commands to run in the 2nd one, up until the next gnome-terminal at the bottom of the script... Code:
#! /bin/bash |
man...Why Won't this Work?
I even tried calling on another script from the first script and it fails. arg! help |
I guess you'll have to ask yourself whether the man-page for airodump
knows some sort of batch-mode, as top does, post process output & echo it, and then expect to read from the same terminal. I don't know of a simple way of starting off a new shell with extra commands in a new terminal that will allow you to pass input back to the calling script, plus it sounds heavily broken in that it requires X to be running in the first place. Cheers, Tink |
Quote:
Please read the LQ Rules |
@tredegar Jeremy posted a member awards 'Network Security Application of the Year' whic includes snort, which is the same thing, basically. Its for learning purposes. try doing an LQ search of aircrack and you will see that this is a popular thing. It's not being used for malicious purposes.
@Tinkster Are you sure? I ALMOST got off the ground with this command Quote:
I am thinking I should just do: Quote:
|
@ leopard,
actually, searching for 'aircrack' threads will turn up a bunch of threads that have been closed. This here thread is still going, because the OP (you, in this case) are looking for "scripting help", as opposed to "help me make aircrack work". They are two different issues. tredegar makes a very valid point (see the LQ-Rules for specifics); if you were asking us to help you get aircrack working, we would not be able to help, because we don't know what you plan to do with it. Since you are just looking for help to get your script and xterms working as you want (and you seem to have figured out air-whatever on your own), we can help (for now ;) ) Best regards, Sasha |
Quote:
|
@ GrapefruiTgirl,
With respect, I think you have missed the point: leopard is asking for help with writing a script. OK, we at LQ will try to help anyone write scripts .... But what is the purpose of leopard's script? Have you read it? Its purpose is to crack WEP encrypted WAPs in a simple "lame cracker" way. I do not think this sort of posting should be tolerated here. If you disagree, please explain, and I do not wish to hear "He's just asking for "scripting help" so that's OK". It is not OK, because the purpose of his (thankfully, bad and non-functioning) script is evil. |
An while I have originally posted a helpful comment I must say I
didn't quite realise what the intention of the thread was ... my bad. Indeed it looks as if Mr Leopard is trying to write a script that allows lifeforms of lower wits and ill intention to make use of cracking software more easily. With these words I'm closing the thread and ask Mr Leopard to abstain from such threads in the future. Cheers, Tink |
All times are GMT -5. The time now is 11:13 AM. |