Hi
I am new to php programming
As part of one activity I new to schedule below three php files from cronjob at 10,11,12PM respectively
0 10 * * * php -q /home/produsr/newtask22/gather.php
0 11 * * * php -q /home/produsr/newtask22/upload.php
0 12 * * * php -q /home/produsr/newtask22/report.php
Now due to some issue by scheduling 3 cron jobs, I need to run above three php files from one php like
#start newtask22
execute php -q /home/produsr/newtask22/gather.php
sleep 1hour #
execute php -q /home/produsr/newtask22/upload.php
sleep 1hour
execute php -q /home/produsr/newtask22/report.php
#end newtask22
Please let me know how to do so in php
I tried and wrote below script but not sure whether its right or not
<?php
exec("php -q /home/produsr/newtask22/gather.php");
sleep(3600);
exec("php -q /home/produsr/newtask22/upload.php");
sleep(3600);
exec("php -q /home/produsr/newtask22/report.php");
?>
Please correct my code :)