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.

cronjobs in cpanel..

Discussion in 'General Discussion' started by harry.mat, Apr 7, 2012.

  1. harry.mat

    harry.mat Registered

    Joined:
    Apr 7, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I tried a lot of methods but ended up with nothing in hand..My simple target is to reset a variable to zero at the end of the day.

    i checked the location of php as "which php" and "whereis php"

    which resulted into /usr/bin/php

    here are some of things i tried..

    /usr/local/bin/php -f /home/USERNAME/public_html/developer3/crons/filename.php

    /usr/bin/php -f /home/USERNAME/public_html/developer3/crons/filename.php

    php -q /home/USERNAME/public_html/developer3/crons/filaname.php

    /usr/bin/wget -O http://subdomain.sitename.com/crons/filename.php

    for quick results, i kept the timming as every minute to execute the code. i could successfully execute the code as

    http://subdomain.sitename.com/crons/filename.php

    i am not the admin of the cpanel, so don't have the ssh access, please guide me..:confused:

    please guide me.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    try
    lynx -dump
     
  3. harry.mat

    harry.mat Registered

    Joined:
    Apr 7, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    well the code below worked for me..
    i don't know why, may be there was some error in the back end which i tried reporting to service provider as my cron jobs are not running and its all working after that.

    wget -O- http://subdomain.sitename.com/crons/filename.php

    as i don't have ssh access so couldn't try "lynx -dump "..

    thanks by the way
     
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
  5. harry.mat

    harry.mat Registered

    Joined:
    Apr 7, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    oh that way.. i guess it was obvious from your last post.. thanks again, i'll try it out
     
Loading...

Share This Page