-BRAIDZ- Posted July 13, 2011 Posted July 13, 2011 Hey there everyone ive been having a problem with my crons working on my game and was wondering if maybe i could please get a little help getting them running, i am using curl commands, but not sure if i am entering them right, i will give you an example of what im doing */5 * * * * curl htttp://yoursite.com/cron_run_five.php is this correct or do i need to add something else to the command with the curl? Quote
Nutta Posted July 13, 2011 Posted July 13, 2011 you need to add you game id after. EG. curl http://blabla.x10.mx/cron_day.php?code=243254356475678589 your game id or whatever its called can be found in config.php Quote
-BRAIDZ- Posted July 13, 2011 Author Posted July 13, 2011 you need to add you game id after. EG. curl http://blabla.x10.mx/cron_day.php?code=243254356475678589 your game id or whatever its called can be found in config.php add it like this? 'code' => '4d3eb406484f4ca520c42a120974ab8b' thats the way it is in config.php or just enter code= 4d3eb406484f4ca520c42a120974ab8b Quote
chicka Posted July 13, 2011 Posted July 13, 2011 (edited) should look like this curl http://yourgame.com/cron_run_five.php?code=yourcodehere Edited July 13, 2011 by chicka Mistake Quote
-BRAIDZ- Posted July 13, 2011 Author Posted July 13, 2011 (edited) should look like this curl http://yourgame.com/cron_run_five.php?code=yourcodehere Just tried that, not working Edited July 13, 2011 by -BRAIDZ- Quote
Dominion Posted July 13, 2011 Posted July 13, 2011 Just tried that, not working Silly question... did you replace "youcodehere" with your config code? Quote
-BRAIDZ- Posted July 13, 2011 Author Posted July 13, 2011 Silly question... did you replace "youcodehere" with your config code? of course i did, and my game runs off ravans mafia script Quote
realmoflegends Posted July 13, 2011 Posted July 13, 2011 This does not work? */5 * * * * curl http://domainname.com/cron_fivemins.php?code=stringofnumbersandletters Quote
-BRAIDZ- Posted July 13, 2011 Author Posted July 13, 2011 This does not work? */5 * * * * curl http://domainname.com/cron_fivemins.php?code=stringofnumbersandletters Nope, is there any other ways? Quote
Dominion Posted July 13, 2011 Posted July 13, 2011 Check the cron files within raven script have not been edited, and still work like the mccodes original (so checking the config code...). You may also want to check the file names, and path to the files. Quote
-BRAIDZ- Posted July 13, 2011 Author Posted July 13, 2011 Check the cron files within raven script have not been edited, and still work like the mccodes original (so checking the config code...). You may also want to check the file names, and path to the files. ok will do that, this is really starting to piss me off them not working they was working fine a few weeks ago now they arent at all Quote
Dominion Posted July 13, 2011 Posted July 13, 2011 ok will do that, this is really starting to piss me off them not working they was working fine a few weeks ago now they arent at all Can you manually run them by putting that right into the address bar? Quote
-BRAIDZ- Posted July 13, 2011 Author Posted July 13, 2011 Can you manually run them by putting that right into the address bar? yeah i sure can mate Quote
realmoflegends Posted July 13, 2011 Posted July 13, 2011 If they worked previously, and you can run them manually, it sounds like a hosting issue, possibly. Quote
Mystical Posted July 14, 2011 Posted July 14, 2011 Hey there everyone ive been having a problem with my crons working on my game and was wondering if maybe i could please get a little help getting them running, i am using curl commands, but not sure if i am entering them right, i will give you an example of what im doing */5 * * * * curl htttp://yoursite.com/cron_run_five.php is this correct or do i need to add something else to the command with the curl? I had the same problem and this is how I solved it. */5 * * * * wget -c http://www.yourgame.com/cron_fivemins.php?code=your code here Try it and see if it works then. Good luck to you. Quote
oxidati0n Posted July 22, 2011 Posted July 22, 2011 Check the cron files within raven script have not been edited, and still work like the mccodes original (so checking the config code...). You may also want to check the file names, and path to the files. A bit irrelevant, but I might aswell share for developers. There's a way to avoid using cronjobs simply by using timestamps. You can generate a timestamp for how long a user will be in jail (time()+60*60 = 1 hour ahead in the future), for example and then check whether time() has exceeded the timestamp and if so, they aren't in jail anymore. That principle is not only resource friendly, but it saves the headache of cronjob's not working. In some things, you might need a cron job but reducing the dependency on them will make things a lot easier. Quote
Dominion Posted July 22, 2011 Posted July 22, 2011 http://makewebgames.io/showthread.php/32642-any-version-Removal-of-1-minute-crons?p=200951&viewfull=1#post200951 Sure, Timestamps can help. ;) Quote
Chris.Bailey Posted July 26, 2011 Posted July 26, 2011 Thanks This Thread helped me fix my cron problem thanks guys :) CB Quote
Ecko Posted August 2, 2011 Posted August 2, 2011 braidz your problem might be your hosting might not allow cron jobs , maybe change host , if your hosting is free , go premium? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.