Hello everyone! Thank you for taking the time to read this. My question is straightforward: I have 15 crontabs running in the cPanel of my hosted site. Is there a way I can put them all into one script, then have the script run every minute? Is there a better way? I though to run the script every minute so that as soon as it matches the time condition (like one that is 40 16 * * *), it runs. Ideas? Thanks for the time and help!! Very much appreciated!
I have no idea. Is the .php file just... dump them in there? With the 0 10 * * * before the crontab? Thanks!
What are the scripts you are running? Try this - http://www.htmlcenter.com/blog/running-php-scripts-with-cron/
Hi! Thanks for the help! Here is an example of one of them: cd /home/comoesta/public_html/camera; for i in `ls -I historic`; do cp $i `basename $i .jpg`-1700.jpg && mv *-1700.jpg /home/comoesta/public_html/camera/historic; done Code (markup): All of them are basically the same. They take all the files inside the folder, and copy them into the /historic with the attached text (in this case, "-1700").
That is easy just make a shell script. Create a file put each statement like that on its own line. Actually put #!/bin/sh in the first line then the rest in their own lines. Change the permissions of the file so it is executable then create one cron job with /path/to/file as the the job.
SUPER!!! I'm going to try that out now... Will update tomorrow, as the schedules run across the day. Quick Question: The cron job for the job... should it run 1 * * * * ?? Or somehow else? I am still learning regarding cron jobs/tabs/shell. THANKS a lot!!! Very much appreciated