How to make a batch file to start program and close the oldwindow?

Les Mikesell lesmikesell at gmail.com
Wed May 16 02:27:38 UTC 2007


Arch Willingham wrote:
> I tried that. After I did it, when you dbl click on the file, you see a screen flash by very quickly and then it disappears. I looked at the running processes and rdesktop is not running a running process (I'm from the Windows world and what I just typed may be barking up the wrong tree...I just took a SWAG and assumed if it was running t=in the background I would still see rdesktop running but Linux may not work that way).

The problem is that you are in the same process group and get killed by 
a signal when your parent shell exits.  'nohup' takes care of an 
assortment of things that need to keep working.  Try

nohup command  &
exit

The 'nohup' redirects output to a file and starts a new process group, 
the '&' lets the shell continue instead of waiting, and the 'exit' 
should close the shell window.

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the fedora-list mailing list