Thread
:
Script Launcher
View Single Post
desiv
2007-08-17 , 21:20
Posts: 225 | Thanked: 59 times | Joined on Jul 2007
#
8
I must be missing something....
I want to launch Kismet (shell based wireless tool) from the cpu-mem-screenshot applet.
You have to be root to run Kismet. So, I have that all set up.
I have a very simple shell script that says:
#!/bin/sh
/usr/bin/sudo /usr/bin/kismet
When I launch an xterm and type ./ksmt or /home/user/ksmt, it runs great.
So, I put an entry in the launcher that launches /home/user/ksmt
And, it sort of works.
Apparently it runs it, but I can't see it. I can't interact with my screen and I have to restart if I don't have an xterm already running.
I decided to run an xterm first and then do it. When I do that, I can't get to my screen, except the xterm (menu, load applet, etc don't respond), BUT I can type in my xterm. And when I do a ps, I see kismet running!!
I just can't see it. Apparently it is spawning it, but I can't see the shell it's in. Not sure why the menus stop working.
But, when I kill the ksmt process, I can use the menus again.
Is there an easy way to spawn the script and have that shell be in the foreground?
Is there a way to spawn osso-xterm and then run the script??
Thanx,
desiv
Quote & Reply
|
desiv
View Public Profile
Send a private message to desiv
Find all posts by desiv