Notice “nohup: ignoring input and appending output to `nohup.out'”

Howdy!

When running a script using nohup and piping the output to a logfile, I received this message:

nohup: ignoring input and appending output to `nohup.out'

This is simply a notice to let you know that the standard error message will also be sent to standard out which will then be redirect to a log file, usually nohup.out. If you would prefer to not to have the message printed, you can modify nohup to send both stderr and stdout to the same file. This is ideal for scripts run in cron or schedule to avoid unnecessary log messages.

Example of message when running a script:

nohup dstat --output /home/user/logs/myoutput_stats.csv -cmnl 3600 90 &
nohup: ignoring input and appending output to `nohup.out'

Use the following modification to avoid this message:

nohup dstat --output /home/user/logs/myoutput_stats.csv -cmnl 3600 90 > /dev/null &

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.