Jump to content

Cron


SieRobin

Recommended Posts

I know this probably doesn't belong in here, but everyone here has actually given me legit help so I figured I'd ask.

I'm trying to set up a cron job to run turns on my MMORPG Web Based website, but I'm not very familiar with cron, so what command do I need to run to do this?
Link to comment
Share on other sites

  • 2 years later...
Log on your server as the user you want to run the cronjob. The cronjob will run at intervals depending on how you set it up. See below.

at the command line use:
crontab -e

There edit your crontab using the following sintax:
A crontab file has five fields for specifying day , date and time  followed by the command to be run at that interval.
*    *  *  *    *  command to be executed and arguments
-    -    -    -    -
|    |    |    |    |
|    |    |    |    +----- day of week (0 - 6) (Sunday=0)
|    |    |    +------- month (1 - 12)
|    |    +--------- day of month (1 - 31)
|    +----------- hour (0 - 23)
+------------- min (0 - 59)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.