l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Oct 23 13:11

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] possible to exit ssh with a program running?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] possible to exit ssh with a program running?

On Thu, Oct 23, 2003 at 08:17:47AM -0700, Jonathan Stickel wrote:
> Is there any way to start a program for a shell window and leave it 
> running when I close the window?  Also, is there anyway to leave a 
> program running remotely, started through an ssh session, and exit ssh?

I know the `nohup' command works for the former, and I figured it worked
for the latter, too. I tried it out, though, and although it "works", my
ssh client would hang on disconnect. That is, I would ssh to a host
(I tried locahost and pc33.cs.ucdavis.edu), type `nohup top -b >
top_ssh.out &', then logout. In both cases, my client didn't seem to
like the idea that I left a program running on the host computer, and
refused to give me back my bash prompt. I was running ssh in Eterms, so
eventually I just closed the window. The nohup'd program did continue to
run, however, which was easy enough to check with `ps' on my localhost
and by reconnecting to pc33.cs.ucdavis.edu. 

1. Try nohup!
2. Could someone tell me why nohup doesn't "work"? :)

-Bryan R
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!