Overwrite all 1 minute cron jobs?

tejli

Member
Aug 8, 2016
23
16
3
vienna
cPanel Access Level
Website Owner
Hello cPanel Community.

Is there a command that will overwrite all users 1 minute cron jobs to 5 minutes?
There have been many questions on this in the past but no answer provided.

I can see some providers already have removes the 1 minute from the drop list and some providers are overwriting automatically the crons from 1 min to 15.

I hope good knowing man/woman will post a solution.

Thank you!!
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,543
208
343
Chesapeake, VA
cPanel Access Level
DataCenter Provider
The problem you are going to run in to here is each category could and probably does use an asterisk. This SHOULD work, but I only did limited testing, so back up your files first.

replace "* * * * *" "*/15 * * * *" -- /var/spool/cron/*

Someone may have done something silly so you may also want to run

replace "*/1 * * * *" "*/15 * * * *" -- /var/spool/cron/*
 
  • Like
Reactions: cPanelLauren

tejli

Member
Aug 8, 2016
23
16
3
vienna
cPanel Access Level
Website Owner
The problem you are going to run in to here is each category could and probably does use an asterisk. This SHOULD work, but I only did limited testing, so back up your files first.

replace "* * * * *" "*/15 * * * *" -- /var/spool/cron/*

Someone may have done something silly so you may also want to run

replace "*/1 * * * *" "*/15 * * * *" -- /var/spool/cron/*

Thank you!!!

As I know this one will replace even hourly or daily crons to 15 min right?
replace "* * * * *" "*/15 * * * *" -- /var/spool/cron/*

2:
This one will replace cpanel users crons or servers crons only?
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,543
208
343
Chesapeake, VA
cPanel Access Level
DataCenter Provider
It will not change anything other than the minutely crons.

It will change the user crons which includes the user root. But not the system crons in /etc/cron*
 
  • Like
Reactions: cPanelLauren