LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   basic shell script help (https://www.linuxquestions.org/questions/linux-newbie-8/basic-shell-script-help-240448/)

lin00b 10-08-2004 10:50 PM

basic shell script help
 
hi ppl, I'm asking for some help with a shell script, I've got giftd and giFTcurs up and running and I'm looking for info on how to write a script to make giftd start running as a daemon (giftd -d) and then open up a shell window and run giFTcurs, thats where my problem lies, I can run both those two programs in a script but I need to know how to open up a shell window so the script starts giFTcurs.

Also does anyone know if you can add custom elements eg scripts into the start/main menu? I'm running SusE 9.1 Pro, thanks for any help :)

Tinkster 10-08-2004 11:12 PM

What you're saying doesn't make sense?
A shell is a shell, it doesn't have (or know
anything about) "windows".

Do you mean you need a script that opens
up another xterm?

Code:

#!/bin/bash
giftd -d
xterm -title "giFTcurs" -e giFTcurs


Cheers,
Tink

lin00b 10-08-2004 11:32 PM

thanks, yea, thats what I needed, umm it doesnt look like it opened it up in a shell window, and the resolutions bigger (making the words smaller) but it's fine to use, cheers :)


All times are GMT -5. The time now is 04:47 PM.