DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

nohup(1)


nohup -- run a command immune to hangups and quits

Synopsis

nohup command [arguments]

Description

nohup executes command with hangups and quits ignored. If output is not re-directed by the user, both standard output and standard error are sent to nohup.out. If nohup.out is not writable in the current directory, output is redirected to $HOME/nohup.out.

Examples

It is frequently desirable to apply nohup to pipelines or lists of commands. This can be done only by placing pipelines and command lists in a single file, called a shell procedure. One can then issue:

nohup sh file

and the nohup applies to everything in file. If the shell procedure file is to be executed often, then the need to type sh can be eliminated by giving file execute permission. Add an ampersand and the contents of file are run in the background with interrupts also ignored (see sh(1)):

nohup file &

An example of what the contents of file could be is:

   sort ofile > nfile

Files


/usr/lib/locale/locale/LC_MESSAGES/uxue
language-specific message file (See LANG on environ(5).)

References

chmod(1), nice(1), sh(1), signal(2)

Notices

In the case of the following command

nohup command1; command2

nohup applies only to command1. The command

nohup (command1; command2)

is syntactically incorrect.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004