Weekly cron executing 2 times:
I have placed a .sh file that runs a php script weekly.
This script should run only once, but every sunday it runs at:
- 1:30 am
- 6:50 am
Any way to fix this?
OH CRAP
in the first email the user agent that request that email via web is: [HTTP_USER_AGENT] => Lynx/2.8.5rel.1 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/1.4.4
and guess who is the IP of the REQUEST ? it's the IP of my old server (where was setted the same cron job)
It's like the old server is requesting that cron via web, I just need to delete the cron job to my old server
Solution 1:
The job is being run by Apache at 1:27, not cron:
ps: www-data 9385 2405 2405 2405 0 47638 12984 1 Mar08 ? 00:00:00 /usr/sbin/apache2 -k start
env: APACHE_LOCK_DIR=/var/lock/apache2
Is httpd being restarted around that time? (Some startup code could be running this.) Alternately, does www-data have a crontab?