Consultor Eletrônico



Kbase P96232: What is the normal way to create crontab entries in UNIX?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

What is the normal way to create crontab entries in UNIX?

GOAL:

How to add crontab entries in UNIX?

FIX:

The normal way to create crontab entries is with the crontab command. In its default mode, the crontab command installs the text file specified as its argument into the cron spool area, as the crontab file for the user who ran crontab. For example, if user chavez executes the command below, the file mycron will be installed as /var/spool/cron/crontabs/chavez:
$ crontab mycron
If chavez had previously installed crontab entries, they will be replaced by those in mycron; thus, any current entries that chavez wishes to keep must also be present in mycron.