Cron job command

  • updated
  • Answered


I'm trying to setup a cron job via cpanel. I'm a bit confused on which command to use. I found in the knowledge base that wget is blocked. Which of the following would be the best to use?

/usr/bin/lynx -source

curl --silent --compressed

It's for a drupal site to run cron.


Hello Jaron, In speaking with our Advanced Hosting support, they advised the below format for your cron. This one will be the most efficient and also run quietly with no output or emails. /usr/bin/php -q <path_to_script> > /dev/null 2>&1 The simply needs to be the full path to the script as opposed to the URL. I hope this answers your question. If you have any more questions or information specific to the issue please leave a comment below so we can further assist you. Best Regards, Scott M