Run a command immune to hangups, runs the given COMMAND with hangup signals ignored, so that the command can continue running in the background after you log out.

      nohup COMMAND [ARG]...

`nohup' increases the scheduling priority of COMMAND by 5, this gives a slightly lower priority.

If standard output is a terminal, it and standard error are redirected so that they are appended to the file `nohup.out'; if that cannot be written to, they are appended to the file `$HOME/nohup.out'. If that cannot be written to, the command is not run.

If `nohup' creates either `nohup.out' or `$HOME/nohup.out', it creates it with no "group" or "other" access permissions. It does not change the permissions if the output file already existed.

`nohup' does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line with an `&'.

Related commands:

nice - Change job scheduling priority
builtin - Run a shell builtin
chroot - Run a command with a different root directory
exec - Execute a command
if - Conditionally perform a command
nohup - Run a command immune to hangups
.source - Run commands from a file
su - Run a command with substitute user and group id

Equivalent Windows NT commands:

SRVANY.EXE - Run a Windows NT application as a service
START /HIGH - Start a program with `high' scheduling priority

Back to the Top

Simon Sheppard