cron

  1. V

    Users cannot use WP-CLI in cron

    Hello, I installed WP-CLI from root, I can use it from a user's terminal without problems, but when I want to use it in CRON, I get the following errors: PHP Warning: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP) in...
  2. R

    Cron: jailshell - No such file or directory

    A cron that has been running for many years has suddenly stopped working with this error: /usr/local/cpanel/bin/jailshell: https://www.xxxxxxxx.net.au/coin_cron/bills.php: No such file or directory bills.php is still here, so what am I doing wrong? Any assistance would be greatly appreciated.
  3. N

    SOLVED Cron Job execute curl only if file has been modified

    Hi I need to execute a command in cron job, but only if a file has been touched. Currently, my cron command is: curl "..." where "..." is my target link. I am new to this but I did manage to find something online. Hoping that someone with experience can confirm that the command below is...
  4. L

    Cron job will run via shell but not the user account

    Hi All hope you can help i have hit a bit of a confusing issue. I have a cron job setup on a user that does not seem to run, if I apply shell access to the user then the cron will run fine however with jailed shell or no shell it will not run. The same cron is in place on other users without...
  5. baronn

    SOLVED [CPANEL-23812] update_db_cache cron job failing

    Hello, whm/cpanelupdated during the night to v76.0.4 and now I am getting these cron emails from the system: Cpanel::Exception::Database::Error/(XID f5zcyk) The system received an error from the “MySQL” database “mysql”: 1053 (Server shutdown in progress) at...
  6. G

    Adding > /dev/null 2>&1 to cron

    I had this line 26 0 * * * (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron) And changed to in order to stop upcp emails: 26 0 * * * (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron > /dev/null 2>&1) Is this the correct way?
  7. M

    SOLVED Configuring CRON To Run At Random Times

    I'm working on a new project and I would like to setup a cron to run every 6-8 hours at a random minute. Any suggestions on the best way to achieve this would be greatly appreciated.
  8. HostXNow_Chris

    Cron emails (/usr/local/cpanel/scripts/fix-cpanel-perl;/usr/local/cpanel/scripts/upcp --c

    I managed many servers with my email address set as the contact an I wake up to find many emails from different servers regarding Cron <root@servername> (/usr/local/cpanel/scripts/fix-cpanel-perl;/usr/local/cpanel/scripts/upcp --cron) I already added >/dev/null 2>&1 to the command in the...
  9. C

    SOLVED Cron jobs stopped working after cPanel to cPanel transfer to a new server

    Ok, these cron jobs used to work just fine on the previous server, and we kept the same OS and pretty much everything moving WHM/cPanel accounts over to the new server, but now, after all the troubleshooting and little tweaks, we can't figure out what's causing these cron jobs not to fire and...
  10. G

    limit cron jobs

    hello, i saw that some hosts have cron jobs limits start packed has cron job option only one per hour minimum advanced packed has cron job option half hour minimum expert packed has cron job option every minute how is this possible to do this? also is it possible to remove every minute cron...
  11. kiozix

    SOLVED Cron Segmentation fault WHMCS

    hi i have probleme with cron jobs cron commande */5 * * * * php -q /home/myuser/public_html/client/crons/cron.php ssh with option on docs php -q /home/myuser/public_html/client/crons/cron.php all -F -vvv WHMCS Automation Task Utility: all ================================== Daily Cron...
  12. G

    Cron <root@server> /usr/bin/kcarectl --auto-update --gradual-rollout=auto

    Cron <root@server> /usr/bin/kcarectl --auto-update --gradual-rollout=auto i updated kernel with yum update and i constantly getting this email notification: Unknown Kernel (CentOS Linux 3.10.0-862.6.3.el7.x86_64) that is whole email. cPanel 72.0.7 centos-release-7-5.1804.el7.centos.2.x86_64
  13. P

    SOLVED Creating a cron job problem

    I am really sorry for my bad english. I need to set up a cron job on my cpanel to receive emails and tweets on my ushahidi deployment. So I'm using a linux command that runs well by ssh. This is the "cd ~ / public_html / astilV10 / platform && ./bin/ushahidi incoming dataprovider" command. But...
  14. G

    SOLVED Cron Daemon Email Error

    Hi, Apologies if this is in the wrong forum, however I couldn't decide which would be the most appropriate. We have a VPS running CentOS7 and cPanel/WHM. We are root users, and multiple times a day receive and email from Cron Daemon containing the below: I was hoping someone could advise on...
  15. N

    Create a Cron Job?

    I want to schedule a task to run on a regular basis and have heard that Cron is the way to do this. How do I add Cron jobs in Ubuntu?
  16. A

    SOLVED Cron job to test file time and send email?

    My home network uploads a file with the date and time, which happens every five minutes. I wish to create a cron job which checks this file and sends me an email if the file is not updating. This would be an indication that my home network has lost internet connectivity. I have been using...
  17. J

    Cron jobs now failing with nospoof error

    It seems last night on my servers during their upgrade window something must have changed. This morning have hundreds of notifications from multiple servers with this line: /etc/host.conf: line 6: bad command `nospoof on' I could most likely just comment out that line on each server, but would...
  18. D

    Prevent cron job from running every minute?

    Hi, Is there any way to prevent users to configure cron jobs that should run every minute? We have a fair share of clients who configure almost every cron job to be run every minute, and some of these are very resource-demanding (and some of them doing many mysql queries). This results in a...
  19. P

    Cron Damon emails regarding missing /etc/krb5.keytab

    I'm getting blasted with emails (100+ emails in the past hour or so) from the Cron Daemon: Subject: Cron <root@servername> [\(!-f /etc/opt/creds/omi.keytab\) -o \(/etc/krb5.keytab -nt /etc/opt/creds/omi.keytab \)] && /opt/omi/bin/support/kstrip /etc/krb5.keytab /etc/opt/omi/creds/omi/keytab...
  20. M

    Predefined Cron for all new accounts?

    Hello, a question I can't answer. Is there any way to predefine a Cron task that already appears by default configured in all new accounts when creating them?? thanks