Basically what I wanted this script for is so I could place this script in /usr/bin and use it to start a Windows program I use frequently. E.G. wine /path/to/exe
dr_zayus69: Tried your way since I've seen it done in init scripts, and it works exactly. Starts up the command I want, and then gives me my shell prompt back, and I can exit the shell too without the process dieing with it.
Here's thie script I wrote resulting from your advice, and it works.
/home/jon_k/cxoffice/bin/wine /home/jon_k/.palace/palace32_original.exe &
Drunna's way works, and loads the program but it doesn't seem to give me control of my shell while the programs running. It seems to just log the output of stdout to nohup.out.
jon_k@2[~]$ nohup xchat
nohup: appending output to `nohup.out'
at this point nothing else happens, until I hit ctrl-c or quit xchat