diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-29 12:17:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-29 12:17:42 +0000 |
commit | a022cf63299787e5223a94de0c76143c653bb313 (patch) | |
tree | b32a2a3b1ac36b68176f6feccd963d80fee95647 /doc | |
parent | ac8cf8db56171d1bce142e96f3355733a0a3ed65 (diff) | |
download | coreutils-a022cf63299787e5223a94de0c76143c653bb313.tar.xz |
Change behavior to conform to POSIX 1003.1-2001:
- Do not adjust scheduling priority.
- Redirects stderr to stdout, if stderr is not a terminal.
- Exit status is now 126 if command was found but not invoked,
127 if nohup failed or if command was not found.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 147788681..a759448a3 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -10935,10 +10935,8 @@ nohup @var{command} [@var{arg}]@dots{} @end example @flindex nohup.out -@command{nohup} increases the scheduling priority of @var{command} by 5, so -it has a slightly smaller chance to run. If standard output is a terminal, -it and standard error are redirected so that they are appended to the -file @file{nohup.out}; if that cannot be written to, they are appended +If standard output is a terminal, it is redirected so that it is appended +to the file @file{nohup.out}; if that cannot be written to, it is appended to the file @file{$HOME/nohup.out}. If that cannot be written to, the command is not run. @@ -10947,13 +10945,27 @@ If @command{nohup} creates either @file{nohup.out} or access permissions. It does not change the permissions if the output file already existed. +If standard error is a terminal, it is redirected to the same file +descriptor as the standard output. + @command{nohup} does not automatically put the command it runs in the background; you must do that explicitly, by ending the command line -with an @samp{&}. +with an @samp{&}. Also, @command{nohup} does not change the +scheduling priority of @var{command}; use @command{nice} for that, +e.g., @samp{nohup nice @var{command}}. The only options are @option{--help} and @option{--version}. @xref{Common options}. +@cindex exit status of @command{nohup} +Exit status: + +@display +126 if @var{command} was found but could not be invoked +127 if @command{nohup} itself failed or if @var{command} could not be found +the exit status of @var{command} otherwise +@end display + @node su invocation @section @command{su}: Run a command with substitute user and group id |