Reputation: 626
I am doing a testing a cron-job
on a shared hosting on hostgator
. I am using this simple and short php script which sends email everytime it gets executed via cron. To keep things explicit, I record the timestamp and timezone and send to email as subject and message.
$message = 'Default timezone : ' . date_default_timezone_get();
$subject = 'DateTime : ' .date('m/d/Y H:i:s', time());
mail("[email protected]", $subject, $message);
*/20 * * * * wget http://path/to/cron.php
test script executed every 20 minutes.
ISSUE : I deleted the cron job from cpanel about two hours ago and I am still getting emails with the rate of roughly around one email per minute. What is happening here, where should I look for the mistake ?
Note : Please state the reason for downvote if you must, so i know the mistake in my question and have a chance to correct it.
Upvotes: 0
Views: 274
Reputation: 2543
You can try changing the name of the script to corn1.php
or else.
There may be some conflict with other codes, or maybe someone else came to know about that script.
Upvotes: 1