Emmanouil
Emmanouil

Reputation: 173

Schedule php script every hour, half hour, and 15 minutes Ubuntu

I have three different php files which I want to schedule every:

Can anybody show me how is it possible to do that in Ubuntu?

Upvotes: 1

Views: 3328

Answers (1)

franiis
franiis

Reputation: 1376

You can edit /etc/crontab:

*/15 * * * * php every15minutes_file.php
*/30 * * * * php every30minutes_file.php
 0   * * * * php every1hour_file.php #it will run on full hour

You can also explore https://crontab.guru to understand it all better

Upvotes: 2

Related Questions