[ILUG] grabbing ftp files remotely...
kenn at research.wombat.ie
Sat Nov 20 00:43:53 GMT 1999
On Fri, Nov 19, 1999 at 07:00:50PM -0000, Alan Sobey wrote:
> On a related note, how to you telnet to a remote machine, start a process
> (e.g. ftp) and exit the telnet session, but still keeping the process alive.
> Alternatively, can you change the Parent ID of a process so it doesn't get
> killed when it's original parent does?
On all RH4.x and later boxes I've used, you can just use
Ctrl-Z followed by the bg command (or the & at the end of
the command) and then logout. I imagine this is a bash
thing rather than a Linux thing.
However, I don't know if it will work if the command is
going to generate output. I normally do something like:
$ command >& /dev/null &
$ command >& logfile &
The '>&' means redirect both stdout and stderr. See man bash
for more details.
More information about the ILUG