Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    96
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Need help with crons!

    I have no idea how to explain it so I just took a screenshot!


    I am hosted on www.***************
    Basically I have my crons saved as .php in my file manager (FTP)
    So I tried to run command 'php -f /home/a3186144/public_html/cron_fivemins.php', etc.
    But still no joy

    So I am hoping there is someone who has had the same problem (sorry :P) and has got theirs sorted so they can help me!

    Any and all help is appreciated.

    Many thanks in advance.
    Last edited by 2Pacalypse; 07-23-2008 at 05:39 PM. Reason: Added my webhost & typo

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,538
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    Did you see this thread?
    http://www.codingforums.com/showthread.php?t=144802

    Not sure if that helps or not.
    The command line does vary between webhosts.

  • #3
    New Coder
    Join Date
    Jul 2008
    Posts
    96
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mlseim View Post
    Did you see this thread?
    http://www.codingforums.com/showthread.php?t=144802

    Not sure if that helps or not.
    The command line does vary between webhosts.
    Yes, I have read it.
    But it appears that I need a different command line

    By the way I'm trying to install codes for MCCodes V2... if that helps any?

  • #4
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Ask your webhost for the proper command to run. Hosts have all different ways of using the commands. They will give you the coding, and just change the username to your control panel username and the path to the file.

  • #5
    Regular Coder
    Join Date
    Apr 2008
    Location
    New Jersey
    Posts
    116
    Thanks
    0
    Thanked 29 Times in 29 Posts
    I assume by "no joy" you mean that there's no evidence that the job is being run. So you probably have an arduous debugging process in front of you. The first thing will be to set up debugging output (probably to a file or email -- someplace you'll be able to see it despite it being run by cron) early in the script so you can tell whether it's actually being called. If it is, then you get to figure out how it's breaking. Possibly you may be able to use output buffering to capture errors into someplace you can see them. Hope you're up to it.
    Chaos
    Lost Souls: text based RPG | MUDseek: MUD gaming search | MUDfind: MUD resource sites | Discordian Quotes

  • #6
    New Coder
    Join Date
    Jul 2008
    Posts
    96
    Thanks
    4
    Thanked 0 Times in 0 Posts
    No, the crons are fine.
    I got them from MCCodes, which are very realiable from what I find
    I think it is the path to the crons that isn't working.

    I will contact the host. Thanks.

  • #7
    Regular Coder
    Join Date
    Apr 2008
    Location
    New Jersey
    Posts
    116
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Yeah, you're definitely going to need to talk to the host. Looking at that cron setup interface, it was clearly written by someone who either didn't really understand cron or intentionally chose to cripple it, and the most often it will allow you to run anything is once a day.
    Chaos
    Lost Souls: text based RPG | MUDseek: MUD gaming search | MUDfind: MUD resource sites | Discordian Quotes

  • #8
    New Coder
    Join Date
    Aug 2008
    Location
    united kingdom
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    just to make a point i wouldnt put it on 000webhost as its not very good with mccodes

    the best free host for mccodes would be www.ej.am

    or get a paid host either way

    also added to make sure it would be the command eg: curl http://yourgame.com/cron_5mins.php34...e73jf85hyd94n9

    make sure you add the curl


  •  

    Posting Permissions

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