Subject: RE: UNIX / Telnet Question - Keeping a process running
From: Buddha (buddha@gci.net)
Date: Thu Jan 24 2002 - 20:34:46 AKST
Another two ways I've seen is use the GNU "screen" program which allows
"Programs to continue to run when their window is currently not visible and
even when the whole screen session is detached from the users terminal."
http://www.gnu.org/software/screen/
http://www.numenor.demon.co.uk/ccfaq/console_tasks.htm#screen
Or another idea is to append an "&" at the end of the command line and "it
will run in the background even if you kill your terminal session." I can't
verify the accuracy of this info however.
http://www.clarkconnect.org/forums/Forum2/HTML/001528.html
Jim "Buddha" McMorris
-----Original Message-----
From: aklug-bounce@aklug.org [mailto:aklug-bounce@aklug.org]On Behalf Of
Mike Tibor
Sent: Thursday, January 24, 2002 8:10 PM
To: Mac Mason
Cc: aklug@aklug.org
Subject: Re: UNIX / Telnet Question - Keeping a process running
On 24 Jan 2002, Mac Mason wrote:
> Well, the fileserver runs headless, and I talk to it with SSH.
> I ssh in, fire up ftp, start the download, then go to turn the desktop
> off.
> Of course, I realize, that's going to end my ssh session and stop the
> download.
>
> How do I keep this process running without leaving the desktop on?
If you have ncftp on the server, all you have to do is type:
bgget <filename>
That queues the file for download, and when you quit it will run the
download in the background. You can confirm this by doing a "ps ax" and
you should see a process called ncftpbatch or something like that.
Doing it this way will allow you to safely end your ssh session without
killing the download. I'm sure there are other ways, but that way works
great for me.
Mike
-- Mike Tibor Univ. of Alaska Anchorage (907) 786-1001 voice Network Technician Consortium Library (907) 786-6050 fax tibor@lib.uaa.alaska.edu http://www.lib.uaa.alaska.edu/~tibor/ http://www.lib.uaa.alaska.edu/~tibor/pgpkey for PGP public key
This archive was generated by hypermail 2a23 : Thu Jan 24 2002 - 20:34:52 AKST