Crontab -e, mail not delivered

On my virtual private linux centos 5.x server i did command “crontab -e
the file was empty, i added this:

MAILFROM="mymailhere@gmail.com"
MAILTO="mymailhere@gmail.com"
 */1 * * * * bash /temporarillydeactivated/
*/1 * * * * /temporarilydeactivate/ >/dev/null 2>&1
*/1 * * * * /root/dom/scriptxy.sh[B]#[/B] >/dev/null 2>&1
* * * * * sleep 30; /root/script.sh >/dev/null 2>&1

Please why no mail arriving to mymailhere@gmail.com? i checked and command: echo “body” | mail -s “subject” mymailhere@gmail.com delivers email OK…

cron emails you the output of any script it runs (if there is any). Since you’re routing all output to /dev/null, you will never get any email because there is nothing to email.

my command is /root/dom/scriptxy.sh# >/dev/null 2>&1

notice “#”

Comment in cron only work at the start of the line, not half way like you have since cron wil just pass it on to the command verbatim