This content has been marked as final. Show 2 replies
You could naively do:
However you might want to review & refactor the code since it will be "long running" and might hold onto resources unnecessarily.
<?php require("/home/produsr/newtask22/gather.php"); sleep(3600); require("/home/produsr/newtask22/upload.php"); sleep(3600); require("/home/produsr/newtask22/report.php"); ?>
Running php from the cron scheduler works as you know but there are ways to do this better and still use cron.
Wrap your jobs into a shell script. This way you can get the PID of the running job and then test to see if each job is finished prior to launching the next one.
Just a thought