movieprodw
asked on
Setup crons to run consecutively
Hello,
I have 3 crons that need to run minutes apart and they need to start every 45 minutes.
Currently I am running them every hour and that is easy because I can set the times, but I need to up the frequency and I a not sure how to do that.
0 */1 * * * wget -O /dev/null http://domain.com/cl/parse.php?action=list_page
10 */1 * * * wget -O /dev/null http://domain.com/cl/parse.php?action=parse_page
15 */1 * * * wget -O /dev/null http://domain.com/cl/parse.php?action=download_image
It would be ideal if I could make them all run in the same cron so once one was finished it triggered the other... but I don't think that is possible.
Matt
I have 3 crons that need to run minutes apart and they need to start every 45 minutes.
Currently I am running them every hour and that is easy because I can set the times, but I need to up the frequency and I a not sure how to do that.
0 */1 * * * wget -O /dev/null http://domain.com/cl/parse.php?action=list_page
10 */1 * * * wget -O /dev/null http://domain.com/cl/parse.php?action=parse_page
15 */1 * * * wget -O /dev/null http://domain.com/cl/parse.php?action=download_image
It would be ideal if I could make them all run in the same cron so once one was finished it triggered the other... but I don't think that is possible.
Matt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Make one script that calls the others in sequence.
ASKER
Thanks!
I think this will work.
The issue is that the scripts take a long time and will timeout if I run them all together.
I think this will work.
The issue is that the scripts take a long time and will timeout if I run them all together.
*/45 * * * * wget -O /dev/null http://domain.com/cl/parse.php?action=list_page