h3x.no

Tor Henning Ueland`s thoughts about technology and other stuff

Archive for the ‘stderr’ tag

Cron commands not working when outputting to stderr(2>&1)

without comments

The error:

username@host:/home/foo> fetchmail -f /opt/rt-fetchmail/fetchmail 2>&1 /dev/null
Enter password for username@/dev/null:

Solution: Change the cron entry / command to the following:

fetchmail -f /opt/rt-fetchmail/fetchmail > /dev/null 2>&1

This will stop -all- output from appearing.

Written by Tor Henning Ueland

May 7th, 2009 at 12:17 pm

Posted in Linux

Tagged with , ,