I just created a tiny shell script to be run every minute.
What happened was that it started flooding my mail
.
$ crontab -l
* * * * * /home/user/bin/test 2>&1 >/dev/null
I changed the redirection to >/dev/null 2>&1
, and it stopped.
I thought 2>&1 >/dev/null
and >/dev/null 2>&1
are equal in shell at least... Now I hesitate, are they (equal) and it's just the CRON programmed this way?