Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Cron Job Help

  1. #1
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default Cron Job Help

    I am trying to make a file run every monday night at 4am.

    I have the following code
    PHP Code:
    04**/usr/bin/lynx -source /home/habbocou/www/Panel/test.php 
    It doesn't work.
    What is wrong.
    I've Tryied google and got nowhere


  2. #2
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Sorry For double post but i need this quite soon.

    Any Helpful Information/help Given will get +rep


  3. #3
    Join Date
    Jan 2007
    Posts
    825
    Tokens
    0

    Default

    Just Make It Grab The time Off The Net And Then check With your PHP Script Time (Constant). At 04.00 it will run. i dont know about the monday bit maybe do it x7 >?
    That post was really sensible!

  4. #4
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    The script is fine.

    I just want it to run which it won't


  5. #5
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    0 4 * * * * php -q /home/username/public_html/path/to/file.php

  6. #6
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Quote Originally Posted by FlorX View Post
    0 4 * * * * php -q /home/username/public_html/path/to/file.php
    Doesn't work


  7. #7
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    does for me

  8. #8
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Reina View Post
    I am trying to make a file run every monday night at 4am.

    I have the following code
    PHP Code:
    04**/usr/bin/lynx -source /home/habbocou/www/Panel/test.php 
    It doesn't work.
    What is wrong.
    I've Tryied google and got nowhere
    might have something to do with the file not being in public_html?
    Looking for a good desiner to design a social networking template.

    PM me.

  9. #9
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    How do you know it doesn't work. You replied like 2 mins later. The cron job is set to run at 4am :p

  10. #10
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Randomer View Post
    might have something to do with the file not being in public_html?
    Why would it have to be in public_html? One of my servers is on /www/

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •