[wplug] background

Chris vze2f6h6 at verizon.net
Tue May 20 16:13:07 EDT 2003


On Tue, 2003-05-20 at 15:47, John Strange wrote:
> Typically ssh will hang if you have something hanging onto your session,
> either bg'd or not.
> 
> I'm sure someone can tell me why this is happenning, as I hate it and
> havent' had time to find a workaround.
> 
> - John
> 
> On Tue, 2003-05-20 at 15:34, Chris wrote:
> > -----Original Message-----
> > From: wplug-admin at wplug.org [mailto:wplug-admin at wplug.org] On Behalf Of
> > James O'Kane
> > 
> > > Assuming your shell is bash, I would do something like this:
> > > The 2>&1 redirects stderr to stdout and the > captures both to
test.log.
> > 
> > > test.sh 2>&1 > test.log &
> > 
> > 
> > Now, will this run until I kill it or until I log off from my ssh
session?
> > 

> I suggest using 'nohup', which makes processes ignore the HUP signal.

So it would look like this?
# nohup ./test.sh 2>&1 > test.log &




More information about the wplug mailing list