addition some orders cron from server

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
Hello,

How do I add

Cron : 0 0 */3 * *

to the server via shh

is available in all locations to use
As is the rest of the orders the other from cron

I searched many sites and could not find a clear result

thank you
 
Last edited by a moderator:

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
542
253
138
IN
cPanel Access Level
Root Administrator
I am not sure if you are asking to add the cronjob for the specific user or for the root user but,
You can edit the crontab for the user using:

Code:
crontab -e -u username
for the root user:

Code:
crontab -e
 
  • Like
Reactions: cPRex

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
Thank you
I mean how do I add to the server
cron: 0 0 * / 3 * *
I add it to the server so that it appears in the cron private list on all sites
The attached pictures explain the issue more
Because cron: 0 0 * / 3 * *
It does not exist, and when adding it manually, it does not work, as in Picture No. 2
 

Attachments

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
Thank you
CPRex
The addition is made through the site
If available in the list cron jobs Common Settings
If not available, add it manually
Example

1- Cron : 0 0 */2 * *
as well
2- Cron : 0 0 */3 * *

The first one works great
The second was previously working and currently not working
Attached are photos of both cases
The first is working and the second is not

I'm going to circle the things that don't work in the second picture
 

Attachments

ServerHealers

Well-Known Member
Sep 21, 2015
95
53
68
India
cPanel Access Level
Root Administrator
That isn't populated the description correctly because it is a custom one and not available in cPanel Cron templates. Either way, it should allow you add it by clicking on the 'Add New Cron Job' button and execute it as you set (Every 3rd day).
 

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
Thank you
How do I access a file Cron from the site control panel
Every 3rd day
I used the site not working
1- Cron : 0 0 */2 * *ok

2- Cron : 0 0 */3 * *
This disappeared after upgrading to the control panel
 

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
Thank you cprex
I easily attach it from the list, but it is not available
But it is not working and is not in the list
The attached photo
I will address the company hosting the server
Or I re-install, but I'm afraid of locking the control panel because it's annoying
 

Attachments

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,463
2,114
363
cPanel Access Level
Root Administrator
If you don't get any output when running the command manually, the issue wouldn't be with cron, but with the command itself. You may want to work with the developer of that script to see what the problem is if it is not giving you any errors.
 

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
Thanks for all the replies
And excellent support
I have sent an email to the company
Or I will reinstall the server, but I'm afraid the same problem will appear
Thanks cPRex And to all
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,463
2,114
363
cPanel Access Level
Root Administrator
Just because the value isn't one of the pre-made options doesn't mean you can't use it.

If you execute the command directly on the command line and you don't have the expected output there, the issue with the script itself. Your host can also check /var/log/cron to confirm the crons are being executed as intended.
 

kuwaite33

Member
Apr 20, 2022
17
1
3
Kuwait
cPanel Access Level
Website Owner
I will wait for the company's solution, if it is not there, I will completely configure and reinstall the server
Thank you. If I find a solution, I will write it here in the forum
 

ServerHealers

Well-Known Member
Sep 21, 2015
95
53
68
India
cPanel Access Level
Root Administrator
kuwaite33
Thank you cprex
I easily attach it from the list, but it is not available
But it is not working and is not in the list
The attached photo
I will address the company hosting the server
Or I re-install, but I'm afraid of locking the control panel because it's annoying
As far as I see from those two screenshots you attached with (Every Other day and Every 3rd day), the Every 3rd day cron job has a typo there. There is no slash (/) added in between the public_html and Application so that could be causing the issues here.

Try to add the Cron entry correctly with correct path to the script location and it should work fine there.