[olug] Keep process running after closing terminal

Will Langford unfies at gmail.com
Wed Apr 20 05:52:37 UTC 2005


Screen is your best bet.

Following that,

/path/command 1>/dev/null 2>&1 < /dev/null &

This will put the command in the background and fix the 3 standard
pipes so that when you disconnect the terminal (close the xterm, ssh
session, what have you), the process goes on living.

-Will


On 4/20/05, Trent Melcher <trent at wispair.net> wrote:
> You may have to run it with nohup,  if your process is prone to hangups, it
> will die when you log out of a terminal even with the & at the end.
> 
> Trent
> 
> -----Original Message-----
> From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of Jake
> Churchill
> Sent: Tuesday, April 19, 2005 11:26 PM
> To: Omaha Linux User Group; eric.maillist at gmail.com
> Subject: Re: [olug] Keep process running after closing terminal
> 
> Put a & after the command.  For example, if you want to run updatedb which
> takes about 8 minutes on my computer, type updatedb&.  It will output the
> PID and you can go about your business.
> 
> On Apr 19, 2005, at 11:17 PM, Eric P wrote:
> 
> > I'm sure this is basic as hell.
> >
> > I want to log onto one of my computers on the LAN, run a console based
> > program on it, and log off with the console based program still
> > running (i.e., not close out when the terminal window is closed).
> >
> > How is this done?
> >
> > Thanks,
> > Eric Pierce
> >
> >
> > _______________________________________________
> > OLUG mailing list
> > OLUG at olug.org
> > http://lists.olug.org/mailman/listinfo/olug
> >
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>



More information about the OLUG mailing list