On Tue, 04 Jun 2002 18:59, Anuerin G. Diaz wrote: > create the script then invoke the terminal using the -e command like this > > xterm -e scriptname & > > but be warned that it will exit after finishing the script. not all > terminals support this so you better check the manpage. > > ciao! > > Michael Adams wrote: > > How does one get a terminal (Konsole window) to open AND start running a > > script in one action from an icon? > > > > I can run a script from an icon or i can open a Konsole window from an > > icon. But i can't get the window to load and run the script from the > > icon. Heres my sample script. > > > > ------- > > #!/bin/bash > > > > #Start the client as a background task > > /usr/games/civclient & > > sleep 1 > > > > #Start the server > > /usr/games/civserver --file m.sav.gz > > ------- > > > > This server needs to be run in an interactive terminal to start it. Of > > course it's for work you understand ;-) > > > > -- > > Michael > > > > Thanks... this is the method i chose. By adding the "xterm -e" to the start of the server line it works perfectly from the desktop without a kde.ink icon. By the way for this one the trailing & is optional. It is a little more correct with the & as without it the script just stays resident in memory but suspended until the xterm is closed.
-- Michael
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com