Closed Thread
Results 1 to 4 of 4

Thread: Cron jobs

  1. #1
    tom52710391 is offline x10Hosting Member tom52710391 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    5

    Cron jobs

    hi i have just set up my crons to run and they are not running the files yet the files are working fine ??

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Cron jobs

    Code:
    /usr/bin/php  /home/igor/public_html/cron.php  >>/home/igor/public_html cron_log.txt  2>&1
    The basic command line for cron jobs. Logs all output and errors so you can see problems.

    You can move the script above public_html or into a password protected directory to keep it from "accidentally" being run from the Web.

    Please note: last time I checked, PHP mail() will not work via cron.

    Also: for those with the base Free account, cron jobs less than 5 minutes apart do not run.

    Note: if your cPanel username isn't igor , make the adjustment to your cPanel name.
    Nothing is always absolutely so.

  3. #3
    tom52710391 is offline x10Hosting Member tom52710391 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    5

    Re: Cron jobs

    thank you

  4. #4
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: Cron jobs

    You may also wish to specify the -q flag with php to prevent it from outputting headers (e.g. /usr/bin/php -q /your/script/here)

Closed Thread

Similar Threads

  1. Need Help with my Cron Jobs!
    By kyberworld16 in forum Programming Help
    Replies: 1
    Last Post: 03-23-2011, 01:20 PM
  2. Cron Jobs
    By jte200875 in forum Free Hosting
    Replies: 1
    Last Post: 01-11-2011, 01:58 PM
  3. Can't run cron jobs
    By rets_kcin13 in forum Free Hosting
    Replies: 0
    Last Post: 11-17-2010, 05:43 AM
  4. Cron Jobs
    By azclan in forum Free Hosting
    Replies: 5
    Last Post: 01-21-2008, 02:44 PM
  5. Cannot set cron jobs
    By GregyFun in forum Free Hosting
    Replies: 1
    Last Post: 01-17-2008, 02:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers