RE: How to make a batch file to start program and close the old window?



Hallelujah!!!! That worked!!!!

Thanks so much for the help!

Arch

-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of Les Mikesell
Sent: Tuesday, May 15, 2007 10:28 PM
To: For users of Fedora
Subject: Re: How to make a batch file to start program and closethe
oldwindow?


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@xxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: How to make a batch file to start program and close the oldwindow?
    ... 'nohup' takes care of an assortment of things that need to keep working. ... 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. ...
    (Fedora)
  • Re: How to make a batch file to start program and close the oldwindow?
    ... The problem is that you are in the same process group and get killed by ... a signal when your parent shell exits. ... nohup command & ... the '&' lets the shell continue instead of waiting, and the 'exit' ...
    (Fedora)
  • Re: How to make a batch file to start program and close the oldwindow?
    ... 'nohup' takes care of an assortment of things that need to keep working. ... 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. ...
    (Fedora)
  • Re: closing xterm closes all started programs
    ... > xapplication directly without nohup. ... Then don't set your shell to kill daughter processes on exit. ...
    (comp.os.linux.misc)
  • Re: Application starts too soon
    ... each shell internal implementation. ... >>> The application runs froma a batch file. ... >>> shutdown command times out and the computer is ready to be turned off. ... >>> think the app tries to run, encounters an error, and exits. ...
    (microsoft.public.windowsxp.embedded)