PHP kill cron



Hi all,

How can i kill a cron process at the begining of my cron task (php script):


My cron task starts evry 5 minutes,
but may work more than this time. (no timeout configured on my server for cron tasks (?).


I guess if i can stop every process of this task before starting it again.


my task looks like:
usr/local/bin/php -q -f /home/mypass/cron.php

then php script cron starts...


THX for ,idears.
.



Relevant Pages

  • Re: FreeBSD 4.8 local startup issues
    ... >> You can create some sort of cron task that checks for running ... how do I account for this in the cron job script? ... Something like this will remove stale .pid files: ...
    (freebsd-questions)
  • Re: Script runs fine alone but not when called by cron (EPIPE)
    ... script that sends an e-mail. ... exception when ran as a cron task. ...
    (comp.lang.ruby)
  • Re: PHP kill cron
    ... How can i kill a cron process at the begining of my cron task (php script): ... Time out is for web servers only, if you want to do a time out thing in ...
    (alt.php)
  • Re: exec() in the background
    ... Only done cron things upto now to run the script every so often, ... Even got it interacting with mysql so i ... run one CRON task every 24 hours. ...
    (alt.php)
  • Re: [PHP] running Batch process using php
    ... I want to run a script in php which should execute at particular condition and if the condition is true then it will send out emails to the recipients. ... Without spending a whole lot of brain cells at the moment, I'd say run it through a cron task. ...
    (php.general)