5 replies
Hey There,

My first time visit to this board.

Okay. I'm setting up this script and in the manual for setting up a cron job with telnet, it says:

Code:
command: 0 0 * * * [root_path]/campaign/campaign.launched.php
What would be an equivalent if I want to set it up with the Cpanel Cron Job Feature?

Thank You.

Sumit.
#cronjob
  • Profile picture of the author theIMgeek
    That would be setting the script to run once per day (at zero minute of zero hour, every day, every week, every month)

    If you go into "advanced" settings for cron tasks within cPanel you will see a form to fill out in that same format.

    Enter the numbers in the right spot, then paste the command into the appropriate field. It should be easy to understand once you see the form.

    Depending on your server set-up you may have to add 'php' to the beginning of your command (with a space), so it would be...

    php /root/path/campaign/campaign.launched.php

    Finally, make sure that the PHP script itself has permission to be executed... chmod 755.

    -Ryan
    Signature
    FREE WSO: Protect and Automatically Deliver Your Digital Products

    Ask the Internet Marketing Geek
    <-- Happy to help with technical challenges
    MiniSiteMaker.org <-- Free software to make your mini-sites fast and easy
    {{ DiscussionBoard.errors[1708717].message }}
    • Profile picture of the author Sumit Menon
      Originally Posted by RJP View Post

      That would be setting the script to run once per day (at zero minute of zero hour, every day, every week, every month)

      If you go into "advanced" settings for cron tasks within cPanel you will see a form to fill out in that same format.

      Enter the numbers in the right spot, then paste the command into the appropriate field. It should be easy to understand once you see the form.

      Depending on your server set-up you may have to add 'php' to the beginning of your command (with a space), so it would be...

      php /root/path/campaign/campaign.launched.php

      Finally, make sure that the PHP script itself has permission to be executed... chmod 755.

      -Ryan
      One of the crons I set up has this in the bigger box:
      Code:
      php -q /home/sumitmen/public_html/mail/crons/followups.php  > /dev/null
      Do I need to add the php -q and > /dev/null here too?

      Thanks,
      Sumit.
      {{ DiscussionBoard.errors[1708779].message }}

Trending Topics