Koozali.org: home of the SME Server

Background ftp session from remote ssh

Graham Harris

Background ftp session from remote ssh
« on: December 01, 2002, 03:34:48 AM »
Hi,

I'm a relative newbie.  I have sme5.5 running fine administered from my remote(ish) win box.  I would like to have a test server with 5.6b on it.  

I have a slowish connection to the net and I want to start an ftp download to my 5.5 box from an ssh session and not have it terminate as soon as I close the ssh session.  

I have searched around and am aware of fg/bg/jobs but how do I put an interactive ftp session into the background and not have it hang up (nohup)??.

I know I could use wget and an & but I am trying to educate myself. :)

Thanks

Graham

Charlie Brady

Re: Background ftp session from remote ssh
« Reply #1 on: December 01, 2002, 06:29:05 AM »
Graham Harris wrote:

> I have a slowish connection to the net and I want to start an
> ftp download to my 5.5 box from an ssh session and not have
> it terminate as soon as I close the ssh session.
>
> I have searched around and am aware of fg/bg/jobs but how do
> I put an interactive ftp session into the background and not
> have it hang up (nohup)??.
>
> I know I could use wget and an & but I am trying to educate
> myself. :)

I'd strongly advise you to use rsync rather than ftp. There's a HOWTO on this web site. Use nohup to run the command to have it continue after logout.

Charlie

Graham Harris

Re: Background ftp session from remote ssh
« Reply #2 on: December 01, 2002, 02:33:19 PM »
Thanks Charlie,

I have just read the howto and the rsync is happening as I type this in a detached session.

Cheers,

Graham