From f57d67630f8a9e2b50695891f52f90d189ea4807 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 19 Mar 2005 00:46:16 +0000 Subject: (nohup invocation): Clarify nohup.out creation. --- doc/coreutils.texi | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'doc/coreutils.texi') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 6d196013e..69134f338 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -12473,20 +12473,16 @@ nohup @var{command} [@var{arg}]@dots{} @end example @flindex nohup.out -If standard output is a terminal, it is redirected so that it is appended +If standard output is a terminal, the command's standard output 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 +to the file @file{$HOME/nohup.out}; and if that cannot be written to, the command is not run. -If standard output is not a terminal, then the standard output of -@var{command} will be the same as that of @command{nohup}. - -If @command{nohup} creates either @file{nohup.out} or -@file{$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. +Any @file{nohup.out} or @file{$HOME/nohup.out} file created by +@command{nohup} is made readable and writable only to the user, +regardless of the current umask settings. If standard error is a terminal, it is redirected to the same file -descriptor as the standard output. +descriptor as the (possibly-redirected) 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 -- cgit v1.2.3-54-g00ecf