The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page