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 &

Was this post helpful?