Archive for the ‘bash’ tag
Cron commands not working when outputting to stderr(2>&1)
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.