Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

run input in cron jobs

Discussion in 'General Discussion' started by ramsin, Aug 9, 2014.

  1. ramsin

    ramsin Member

    Joined:
    Apr 3, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello dear
    i want run this code in cron jobs every 30 minute.please help me how am i send input in cron jobs?:(

    [PHP Code Removed]
     
    #1 ramsin, Aug 9, 2014
    Last edited by a moderator: Aug 11, 2014
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You would actually need to call the script using "php" in the cron job. A basic example is:

    Code:
    /usr/local/bin/php /home/username/public_html/file.php
    Use the "Cron Jobs" option in cPanel to set this up.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice