+ Reply to Thread
Results 1 to 7 of 7

Thread: crons dont work

  1. #1
    kolanich is offline x10Hosting Member kolanich is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    DeepTown
    Posts
    37

    crons dont work

    The crons don`t work!!!
    the command is /usr/bin/php -q /home/kolanich/public_html/<script>
    my site is on stoli
    Last edited by kolanich; 03-26-2010 at 08:50 AM.

  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,636

    Re: crons dont work

    On Lotus, the following works:

    Code:
    /usr/local/bin/php -q /home/username/public_html/crontest.php
    1. Set the email notification to an address you can check. Error messages can be helpful and you can always turn it off once you get the cron job working the way you want.

    2. Use absolute paths in the script. The working directory seems to be /home/username , not the directory where the script is located.
    Nothing is always absolutely so.

  3. #3
    kolanich is offline x10Hosting Member kolanich is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    DeepTown
    Posts
    37

    Re: crons dont work

    1 will set
    2 dont understend
    what do you mean

  4. #4
    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,636

    Re: crons dont work

    Quote Originally Posted by descalzo View Post
    2. Use absolute paths in the script. The working directory seems to be /home/username , not the directory where the script is located.
    Quote Originally Posted by kolanich View Post
    2 dont understend
    what do you mean
    Say your script is in /home/username/public_html
    Say you want to create a file "cron_output.txt" to append to.
    If you use fopen( "cron_output.txt" , "a" ) , the file will be in /home/username , not /home/username/public_html
    You should use fopen( "/home/username/public_html/cron_output.txt" , "a" )
    Nothing is always absolutely so.

  5. #5
    kolanich is offline x10Hosting Member kolanich is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    DeepTown
    Posts
    37

    Re: crons dont work

    i see there is no effect
    script made no action!!!
    because it hasn`t been launched

  6. #6
    kolanich is offline x10Hosting Member kolanich is an unknown quantity at this point
    Join Date
    Aug 2009
    Location
    DeepTown
    Posts
    37

    Re: crons dont work

    They really don`t work
    no e-mail reports.

  7. #7
    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,747

    Re: crons dont work

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

+ Reply to Thread

Similar Threads

  1. Crons don't work
    By megakilobit in forum Programming Help
    Replies: 8
    Last Post: 11-13-2009, 10:17 AM
  2. How Do Crons work??
    By eternal-empire in forum Free Hosting
    Replies: 15
    Last Post: 10-18-2007, 04:16 AM
  3. ads dont work..
    By Skyline4life in forum Free Hosting
    Replies: 9
    Last Post: 09-28-2005, 05:55 PM
  4. The ads dont work How do I fix them!
    By UndergroundMark in forum Free Hosting
    Replies: 2
    Last Post: 09-23-2005, 09:26 PM
  5. ads dont work
    By Imakuni in forum Free Hosting
    Replies: 3
    Last Post: 09-03-2005, 09:11 PM

Tags for this Thread

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