PHP cron script runs more than once per minute

I have a cron job that runs more than once per minute, but am not sure how this is possible, given that linux only processes at small intervals. This is how I explored it.

Firstly, I confirmed that there are no additional entries in /etc/cron.hourly,/etc/cron.daily, etc. no.

Then I went into / etc / crontab to make sure there were no additional entries, nothing.

Then I ran this command to see crontab for all users

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

... nothing there, however, the root did not appear, but perhaps this is expected

Finally i clicked crontab -l

and all I get was one record as expected:

* * * * * wget --no-check-certificate -q -O - https://...cron_custom_alerts.php

Based on the foregoing, I assume that in fact only one cron job is given. However, I added an entry to the script that works, and I see more than one execution per minute. I output both $ _SERVER ['PHP_SELF'] and $ _SERVER ['REMOTE_ADDR]' in case cron is executed externally. However, the log does not show the remote IP address and does not give any hints, except that I suspected that it worked several times.

2012-05-02 21:57:01 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:57:47 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:57:53 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:58:01 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:58:48 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:58:54 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:59:01 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:59:47 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 21:59:53 - /cron_custom_alerts.php EXECUTED BY 
2012-05-02 22:00:01 - /cron_custom_alerts.php EXECUTED BY

It seems they worked in groups of three. When I went into crontab and commented on one entry, it reduced it to two! Apparently there are two more hidden jobs that call this script, but it doesn't show up throughcrontab -e

If there is more registration I can do with PHP, I am open to this, but I really hit the wall to find out what this script runs.

: , script , - cron. cron htaccess deny.

+3
1

cron . , , . , root, crontab .

cronjob , . , HTTP- - (, ). .

0

All Articles