]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/nohup.c (usage): Describe how standard input and output are redirected.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 28 Apr 2007 18:47:29 +0000 (20:47 +0200)
committerJim Meyering <jim@meyering.net>
Sat, 28 Apr 2007 18:48:36 +0000 (20:48 +0200)
ChangeLog
doc/ChangeLog
doc/coreutils.texi
lib/.cvsignore
lib/.gitignore
src/nohup.c

index a6202129b032fcb01ac708382d89090b5a4c0033..3149e4971847ae2a4e1a800ff9341e20d6ade196 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * src/nohup.c (usage): Describe how standard input and output
+       are redirected.
+
 2007-04-25  Jim Meyering  <jim@meyering.net>
 
        * src/du.c (usage): Clarify description of --dereference-args (-D).
index ca00a842d8f7b48119a7a50168cc89066ace3a63..80d2f097105939fe9164dc0ea78dc4df717c5b54 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (nohup invocation): Add advice about saving
+       output to a file.
+
 2007-04-16  Jim Meyering  <jim@meyering.net>
 
        * coreutils.texi (cut invocation): Adjust synopsis to show that an
index e1c5f517272b0a5c53ae6fb4699d3a1964fa140e..c535dad5849b18680d395a9aa8659e94304fa4d1 100644 (file)
@@ -13441,6 +13441,14 @@ However, if standard output is closed, standard error terminal output
 is instead appended to the file @file{nohup.out} or
 @file{$HOME/nohup.out} as above.
 
+To capture the command's output to a file other than @file{nohup.out}
+you can redirect it.  For example, to capture the output of
+@command{make}:
+
+@example
+nohup make > make.log
+@end example
+
 @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{&}.  Also, @command{nohup} does not alter the
index 578c0c28ed42902bad1db984d001a8de002a00f0..3fd4bb79ba7e3abe07b009de99817866d4a9304e 100644 (file)
@@ -358,6 +358,10 @@ strtoumax.c
 strverscmp.c
 strverscmp.h
 sys
+sys_socket.h
+sys_socket_.h
+sys_stat.h
+sys_stat_.h
 sys_time.h
 sys_time_.h
 t-fpending
index 8e1e579fe83ca3020a21b97836486528796658ab..3139b9363d97611b5c2db43f04ebc4398daf2f4c 100644 (file)
@@ -349,6 +349,10 @@ strtoumax.c
 strverscmp.c
 strverscmp.h
 sys
+sys_socket.h
+sys_socket_.h
+sys_stat.h
+sys_stat_.h
 sys_time.h
 sys_time_.h
 t-fpending
index dd64410b319ed3404efa08c6c67b60504d74a0a6..aeab291c3b665de30b58032ccf33537bda765d75 100644 (file)
@@ -66,6 +66,13 @@ Run COMMAND, ignoring hangup signals.\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+      printf (_("\n\
+If standard input is a terminal, redirect it from /dev/null.\n\
+If standard output is a terminal, append output to `nohup.out' if possible,\n\
+`$HOME/nohup.out' otherwise.\n\
+If standard error is a terminal, redirect it to standard output.\n\
+To save output to FILE, use `%s COMMAND > FILE'.\n"),
+             program_name);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
       emit_bug_reporting_address ();
     }