You are not logged in.

#1 2010-04-25 19:13:44

d_logan
Member
Registered: 2010-04-21
Posts: 21

This is probably an easy one for some of you [SOLVED]

Basically, I have some scripts that sudo netcfg <profile> that I have  a launcher menu setup for in my KDE panel.

The scripts work fine.  They are just bash scripts.  What would be nice is if I could get some visual feedback on the script running, like maybe call open a konsole terminal, run the script, then exit the konsole terminal.  I'm just not sure how to make that happen.

Any ideas?

Thanks!

Last edited by d_logan (2010-04-25 20:23:18)

Offline

#2 2010-04-25 19:24:05

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: This is probably an easy one for some of you [SOLVED]

xterm -e <script>

smile

(that means you create a launcher which executes "xterm -e <script"

Last edited by flamelab (2010-04-25 19:24:31)

Offline

#3 2010-04-25 19:30:05

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: This is probably an easy one for some of you [SOLVED]

Sure, the command for the launcher should be something like this:

konsole -e /path/to/bash/script

You may need to put a sleep or 'press enter to continue' read at the end of the script if it just runs and exits.  The -e option causes konsole to execute your command and then exit the terminal.


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

#4 2010-04-25 20:23:02

d_logan
Member
Registered: 2010-04-21
Posts: 21

Re: This is probably an easy one for some of you [SOLVED]

konsole -e worked.  Thanks a lot.  I knew this wouldn't be a tough one.

I even went ahead and added some ifconfig | grep 'inet addr' and sleep commands.

Offline

#5 2010-04-25 22:40:50

empthollow
Member
Registered: 2009-09-26
Posts: 168

Re: This is probably an easy one for some of you [SOLVED]

Cool, glad to help.


--empthollow
Check out my Arch based live distro http://fluxcapacity.99k.org

Offline

Board footer

Powered by FluxBB