& vs nohup

David A. Bandel david
Mon May 17 12:01:17 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 11 Apr 2004 23:01:08 +0800
"M.W. Chang" <mwchang at i-cable.com> wrote:

> 
> What's the difference between "command &" and "nohup command"?

some processes (and this is also shell dependent), will exit when the
controlling tty exits.  The nohup command allows you to exit by acting
as the controlling tty (although if the process requires input it will
hang until you kill it).

> 
> I tried to run `btdownloadheadless --responsefile abc.torrent --saveas
> 
> abc &`. The process stopped instantly. However, doing the same with
> `nohup btdownloadheadless --responsefile abc.torrent --saveas abc` can
> 
> keep it going, with output directed to nohup.txt.

yep.  That's normal behavior.

Ciao

David A. Bandel
- -- 
Focus on the dream, not the competition.
		Nemesis Racing Team motto
GPG key autoresponder:  mailto:david_key at pananix.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAeY5Qj31PLQNUbV4RAhhoAKDCNAv8l0lV1p6SNnCFHk/msmVlLQCgiu3N
8QhI5Ow9oYTUO/nZyfpnFVg=
=/wTj
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list