Skip to main content

addition some orders cron from server

Comments

24 comments

  • kodeslogic
    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: crontab -e -u username
    for the root user: crontab -e
    0
  • kuwaite33
    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
    0
  • cPRex Jurassic Moderator
    There isn't a way to automatically add a cron to all cPanel accounts. Can this tool not be run as the root user? Can you let us know more about what you're trying to do?
    0
  • kuwaite33
    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
    0
  • ServerHealers
    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).
    0
  • kuwaite33
    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
    0
  • quietFinn
    I have no problem adding that kind of cron job:
    0
  • cPRex Jurassic Moderator
    Can you let us know what you mean by "not working"? Are you not able to add the cron, or do you get an error when trying to add it, or does the cron just not function?
    0
  • 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
    0
  • cPRex Jurassic Moderator
    It looks like you've been able to create the cron. Are you saying it's not running properly? If so, do you get any errors? What happens if you run that from the command line manually - does that work?
    0
  • kuwaite33
    if you run that from the command line manually - does that work? It does not work at all. It is added without working
    0
  • cPRex Jurassic Moderator
    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.
    0
  • kuwaite33
    Cron : 0 0 */3 * * Not on the list at all When adding manually, the number of days is not shown
    0
  • kuwaite33
    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
    0
  • cPRex Jurassic Moderator
    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.
    0
  • kuwaite33
    I will be working through the server hosting company Thanks cprex
    0
  • cPRex Jurassic Moderator
    Let us know what you find out!
    0
  • kuwaite33
    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
    0
  • ServerHealers
    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.
    0
  • kuwaite33
    Hello ServerHealers Thank you The slash (/) is present If you notice the attached images in the subject circle, the value will not change Photo No. 33 Add it manually In the second picture, it is not in the list to be selected from the list addition 3rd day The site does not work. I do not know why the programmer does not add it as an alternative to this problem
    0
  • ServerHealers
    As mentioned earlier, there was no slash in between it in that screenshot attached with that response. Every 3rd day option is not in that list, means there is no pre-template for that Cron job timing, however, you could add it manually on the corresponding which should work fine. I've many crons running on my server which I added manually and I test one to run every 3rd day as you and it works fine for me here. If it doesn't work for you, I'd suggest either opening a ticket with cPanel support or try running the job manually as the user which should give some more insights if there are any errors with the execution.
    0
  • kuwaite33
    Thank you ServerHealers I will try and if it doesn't work I will open remember
    0
  • kuwaite33
    Thank you ServerHealers
    • Cron : 0 0 */2 * *
    /usr/local/bin/php /home/seyfile//public_html/Application/artisan subscription:renewal-reminder >> /dev/null 2>&1
    • Cron : 0 0 */3 * *
    /usr/local/bin/php /home/seyfile/public_html/Application/artisan subscription:expiry-reminder >> /dev/null 2>&1 Pictures are illustrative, but that's what I do on the site The first is acceptable
    • Cron : 0 0 */2 * *
    The second is acceptable, but it does not work at all and is not in the list
    • Cron : 0 0 */3 * *
    0
  • cPRex Jurassic Moderator
    @kuwaite33 - you'll want to reach out to your hosting provider to have them check your account.
    0

Please sign in to leave a comment.