Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
Cron {Automatic Task}

Cron {Automatic Task}

Ratings: (0)|Views: 83|Likes:
Published by api-3736383

More info:

Published by: api-3736383 on Oct 15, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





red hat enterprise linux 4: system
administration guide
chapter 27. automated tasks

in linux, tasks can be configured to run
automatically within a specified period of
time, on a specified date, or when the
system load average is below a specified
number. red hat enterprise linux is pre\u00ad
configured to run important system tasks
to keep the system updated. for example,
the slocate database used by thelocate
command is updated daily. a system
administrator can use automated tasks to
perform periodic backups, monitor the
system, run custom scripts, and more.

red hat enterprise linux comes with
several automated tasks utilities:cron,
at, and batch.
27.1. cron

cron is a daemon that can be used to
schedule the execution of recurring
tasks according to a combination of
the time, day of the month, month, day
of the week, and week.

cron assumes that the system is on
continuously. if the system is not on
when a task is scheduled, it is not
executed. to schedule one\u00adtime tasks,
refer to section 27.2 at and batch.

to use the cron service, thevixie-
cron rpm package must be installed

and thecrond service must be
running. to determine if the package is
installed, use the rpm -q vixie-

cron command. to determine if the
service is running, use the command
/sbin/service crond status.
27.1.1. configuring cron tasks
the main configuration file for cron,
/etc/crontab, contains the following


# run-parts
01* * * * root run-parts
02 4 * * * root run-parts
22 4 * * 0 root run-parts
42 4 1 * * root run-parts

the first four lines are variables used

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->