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

Moebuntu

Well-known member
Joined
Jul 1, 2016
Messages
103
Best answers
0
Ratings
2 1
Points
18
#1
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
Best answers
0
Ratings
2 1
Points
18
#3
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
Best answers
1
Ratings
68 6
Points
28
#6
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
Best answers
0
Points
1
#7
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
Replies
0
Views
1
Replies
0
Views
2
Replies
2
Views
18
Replies
0
Views
26
Replies
0
Views
14
Recommended Threads
Replies
5
Views
1,416
Replies
5
Views
1,026
Replies
1
Views
3,184
Replies
14
Views
1,456
Similar Threads
Replies
4
Views
123
Replies
1
Views
98
Replies
14
Views
524

Latest postsNew threads

Latest Hosting OffersNew Reviews

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