Hey All,
I have a cron job the executes a PHP script. The cron is setup to run every minute, this is done only for testing purposes. The PHP script it is executing is designed to convert videos uploaded to the server by users to a flash format (eg... .flv). The script executes fine when manually doing it via command line, however when executing via cron it starts fine but after one minute it just stops.
It seems that when the next cron is executed it "kills" the last cron execution. I added the following PHP function:
ignore_user_abort(true);
in hopes it would not abort the last execution. I tested to set the cron to run every 5 minutes, which works fine; however a conversion of a video may take over 5 minutes so I need to figure out why its stoping when another cron is executed.
Any help would be appreciated.
Thank you!
EDIT: My cron looks like:
*/1 * * * * php /path_to_file/convert.php