Jump to content
MakeWebGames

Cron Setup


septrax
 Share

Recommended Posts

Guest Anonymous

Re: Cron Setup

Search the forums -- there is plenty of information on this.

Assuming you are running a *nix server - after all, what madman would permit a windows box to be visible to the outside world ;) - try

man crontab

man 5 crontab

(IIRC) from the command line for more information on cron tables.

Link to comment
Share on other sites

Re: Cron Setup

Ok so my cron should work now not sure tought i saw one posted how to tets but i cant find the post again

Was something with the ulr to the cron file and then the long code that are in config does anybody understand what i mean ? Do i test it that way ?

Link to comment
Share on other sites

Guest Anonymous

Re: Cron Setup

My crontabs are pretty basic (on the odd occasion I actually need them)

Notice the full path to both the executable AND the job

 

#+--------------------------------- Minute
#|    +---------------------------- Hour
#|    |     +---------------------- Day
#|    |     |     +---------------- Month
#|    |     |     |     +---------- Day of Week
#|    |     |     |     |     +---- Job
#|    |     |     |     |     |

*     *     *     *     *     /usr/local/bin/php -f /home/nyna/www/test/crons/1m.php
*/5   *     *     *     *     /usr/local/bin/php -f /home/nyna/www/test/crons/5m.php
*/15  *     *     *     *     /usr/local/bin/php -f /home/nyna/www/test/crons/15m.php
0     *     *     *     *     /usr/local/bin/php -f /home/nyna/www/test/crons/1h.php
0     0     *     *     *     /usr/local/bin/php -f /home/nyna/www/test/crons/1d.php

 

Thats:

1m - run every minute

5m - run every minutes

15m - run every 15 minutes

1h - run every hour

1d - run every day

Link to comment
Share on other sites

Re: Cron Setup

No i cant just type in the url and try the game becuse i need to test if the crons are right and like i said 2 times now i found a post that i could point my url to something and then the long code in congif and i would see if it worked but no i cant find that post so never mind instead i look until i find it so problem solved

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...