|
Answer
by: Stuart Pierce, Aplus.Net Knowledge Base Support
Cron is a
Unix utility which allows tasks to be automatically run in the
background at regular intervals. Such tasks are usually called
cronjobs. Crontab (cron table) is a file which contains the schedule of
the specific tasks to be run at certain intervals.
Here is how
you can access the Crontab tool in your Plesk Control Panel:
- Login
to your Plesk Control Panel. Use the information provided to you when
the server was setup.
- Click
on Domains from the navigation bar on the left.
- Select
the domain name you'd like to manage.
- Click
the Crontab icon
in the Hosting
section.
- You
will see a list of System users (includes FTP users and Web users setup
on the server). Click the System user you'd like to setup a task for.
- Click
the Schedule a Task icon.
- Now,
you have to specify when to run your command.
- Minute - enter a value
from 0 to 59.
- Hour - enter a value from
0 to 23.
- Day of the Month - enter
a value from 1 to 31.
- Month - enter a value
from 1 to 12, or select the month from the drop-down box.
- Day of the Week - enter
the value from 0 to 6 (0 for Sunday), or select the day of the week
from the drop-down box.
You can schedule the
time using the UNIX crontab entry format. In this format, you can:
- enter several values
separated by commas.
Two numbers separated by a hyphen mean an inclusive range. For example,
to run a task on the 4th, 5th, 6th, and 20th of a month, type 4-6,20.
- insert an asterisk to
specify all values allowed for this field. For example, to run a task
daily, type * in the Day of
the Month text box.
To
schedule the task to run every Nth period, enter the combination */N,
where N is the legal value for this field (minute, hour, day, month).
For example, */15 in the Minute
field schedules the task to start every 15 minutes.
- Type
your command in the Command
text field.
- Click the OK
button.
- Now, click the Preferences
icon.
- Enter an email address where you want to receive
crontab messages.
- Finally, click OK.
|