Re: question about a cron job
| From: | Al | Date: | Mon, 17 Jan 2005 15:02:31 +0000 |
| Subject: | Re: question about a cron job | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206543@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
[snip] I've got a question about the following cronjob.I thought the "*" in the minutes position meant to run the script for all minutes, 0.... 59. Am I wrong?#At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php/www/r/rester/htdocs/auto_backup/back_em_up.php/www/r/rester/htdocs/auto_backup/cron.log 2>&1 #At 3:02 clean up sessions folder 2 0 * * * (find /www/r/rester/htdocs/sessions/ -name 'sess_*' -mtime+1 -delete)#this is only for testing a new cronjob, every minute * * * * * /usr/local/bin/php/www/r/rester/htdocs/phpList_cronjob/process_cronjob.phpThe new one doesn't seem to want to run until after 3:01 or 3:02. Shouldn't the sever just run it every minute? [/snip] You have to specify each minute... http://www.unixgeeks.org/security/newbie/unix/cron-1.html/www/r/rester/htdocs/phpList_cronjob/cron.log 2>>&1