i am getting following email every 10 min. as I own the VPS. I am not expert in linux and am learning to manage linux servers. Please help me why am i getting these emails and how to stop them or how to fix the issue i am running CentOS 6 on 123-reg VPS
Subject: Cron /usr/lib64/sa/sa1 1 1 /usr/lib64/sa/sa1: line 11: /bin/date: cannot execute binary file /usr/lib64/sa/sa1: line 13: /bin/date: cannot execute binary file
and below email every 1 hour Subject: Cron run-parts /etc/cron.hourly /etc/cron.hourly/0anacron:
/etc/cron.hourly/0anacron: line 6: /bin/date: cannot execute binary file
/etc/cron.hourly/0anacron: line 6: [: =: unary operator expected
in 0anacron its:
#!/bin/bash
# Skip excecution unless the date has changed from the previous run
if test -r /var/spool/anacron/cron.daily; then
day=`cat /var/spool/anacron/cron.daily`
fi
if [ `date +%Y%m%d` = "$day" ]; then
exit 0;
fi
# Skip excecution unless AC powered
if test -x /usr/bin/on_ac_power; then
/usr/bin/on_ac_power &> /dev/null
if test $? -eq 1; then
exit 0
fi
fi
/usr/sbin/anacron -s
0anacron
file/bin/date
andls -l /bin/date
?which date
' preserve the back-tick quotations. The cron job is probably running as root - check this with 'crontab -l' as root and you should see the appropriate commands listed.