Cron is a UNIX, Solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in UNIX, Solaris. Crontab (CRON Table) is a file which contains the schedule of cron entries to be run and at specified times.
You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow.
If that file does not exist, you can use crontab if your name does not appear in the file /usr/lib/cron/cron.deny.
If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line.
A Crontab file has five fields for specifying day, date and time followed by the command to be run at that interval.
(*) in the value field means all legal values as in braces for that column.
The value column can have a (*) or a list of elements separated by commas. An element is either a number in the ranges shown above or two numbers in the range separated by a hyphen (meaning an inclusive range).
Description:
1. The Script file full_backup_dep.sh from /oracle/DEP/11202/script directory will be executed.
2. Log will be written to full_backup_dep.log file in /oracle/DEP/11202/scripts directory.
3. ( >) Symbol Overwrites on the old log file.
4. (>>) symbol will append the log file contents.
5. By default cron jobs sends an email to the user account executing the cronjob. If this is not needed then put “2>&1” at the end of the cron job line which will push all UNIX details to log file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |