How can I have a bash script create a cron job that runs every 15 minutes?
Posted on 2008-06-10
I want to have a bash script add a cron job that runs a php script every 15 minutes.
I know how to do it using:
and then edit it manually.
But how can I automate that in a script?
Also on a sidenote this is the example crontab that the app I am trying to run reccomends:
0,15,30,45 * * * * /usr/bin/php /etc/php.ini /etc/php.d /usr/share/php \ /var/www/html/trellis/core/global/interfaces/event_runner.php
Some of these, like php.ini appear to be config files. Why would any app need config files in a cron job? Can they even be executed? That seems awfully confusing right now.