How to create a cron job to run every 5 minutes?

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
103
Points
18
I could not find this option in Plesk Onyx

I want to set up my cron job to run every 5 minutes once like this

cron-job-5-minutes.png

In Plesk i saw this option but I don't know how to define

cron-job-5-minutes-1.png

Any help?
 

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
103
Points
18
For a cron each 5 minutes : */5 * * * *
Awesome code, I don't understand where you got this code but I tried to apply on my cron job

I read in its description for cron style

Use the UNIX crontab format "minute hour day-of-month month day-of-week". For example "0 22 * * 1-5". Plesk will use the default system time zone to run the task.
but still could not clarify how to have /5 in this */5 * * * *
 

24x7serverman

Well-known member
Joined
Jul 25, 2017
Messages
651
Points
28
You can use any of the below command -

*/5 * * * * php -q /var/www/vhosts/yourwebsitename.com/httpdocs/cron.php

or

*/5 * * * * curl -s -o /dev/null http:/yourwebsitename.com/www.example.co.nz/cron.php

Below is the description -

Minute: */5
Hour: *
Day of the Month: *
Month: *
Day of the Week: *
 

kibe

New member
Joined
Aug 30, 2017
Messages
3
Points
1
For some of the users, they don't have cron on server, or the server limits the cron use. In those cases, EasyCron is an option. To those who don't know how to use crontab, EasyCron is a great alternative :)
 
Latest Threads
Recommended Threads
Replies
5
Views
1,536
Replies
2
Views
1,936
Replies
0
Views
475
Replies
10
Views
8,414

Latest postsNew threads

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top