+ Reply to Thread
Results 1 to 4 of 4

Thread: Cron Help

  1. #1
    flyingt is offline x10Hosting Member flyingt is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    5

    Cron Help

    I've read multiple Cron tutorials including the one on this site and I can't get my scripts to run. None of the below permutations seem to work. The emails I receive say things such as "Input file not found." I've tried changing permissions; that didn't help.

    I had them running every 5 minutes, but I switched them to every 5 hours until I can get this sorted out.

    * */5 * * * php home/flyingt/public_html/count.php
    * */5 * * * /usr/local/bin/php home/flyingt/www/aaa.php
    * */5 * * * /usr/local/bin/php -q home/flyingt/public_html/count.php
    * */5 * * * /usr/local/bin/php -q home/flyingt/www/aaa.php

    Let's say I want to run the script at http://flyingtiger.exofire.net/aaa.php every 5 minutes. What do I need to do?

    In case its relevant, here's the code. If I understand correctly, I should get an email that says "Hi" if I don't use the "-q" option:

    <?php
    echo "Hi";
    ?>

  2. #2
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,743

    Re: Cron Help

    This is a programming help question..

    ***Thread Moved to programming help***
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  3. #3
    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,267

    Re: Cron Help

    Code:
    * */5 * * * /usr/local/bin/php -q  /home/flyingt/public_html/count.php
    1. You need to start the path to your script with /
    2. If you have multiple scripts running every five minutes, you will be in violation of x10's TOS. You either have to spread them out or do all the work in one script.
    Nothing is always absolutely so.

  4. #4
    flyingt is offline x10Hosting Member flyingt is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    5

    Re: Cron Help

    It worked. Thank you so much.

+ Reply to Thread

Similar Threads

  1. Replies: 6
    Last Post: 11-14-2009, 07:38 PM
  2. Can a cron job kick off another cron job?
    By dmoneyman in forum Programming Help
    Replies: 8
    Last Post: 04-03-2009, 09:04 PM
  3. cron down
    By kannagara in forum Free Hosting
    Replies: 1
    Last Post: 08-23-2008, 01:56 PM
  4. cron can't run php :(
    By galaxyAbstractor in forum Free Hosting
    Replies: 0
    Last Post: 02-06-2008, 11:47 AM
  5. [cron problem]php-cron command not found
    By N4rk0 in forum Free Hosting
    Replies: 1
    Last Post: 01-31-2008, 12:51 PM

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