pavement

Crontab

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
m (minor punctuation fix)
Line 1: Line 1:
edit's a user's [[cron]] table -- hence the name -- by running an editor. The actual tables for each user are kept in /etc/cron/tabs but are not meant to be edited directly.
+
edits a user's [[cron]] table -- hence the name -- by running an editor. The actual tables for each user are kept in /etc/cron/tabs but are not meant to be edited directly.
  
 
The tables are in this format:
 
The tables are in this format:
Line 6: Line 6:
 
  0    12      14        2          *        fsck -y
 
  0    12      14        2          *        fsck -y
  
Time values can be set to * (for all) or * divided -- e.g., */5 in the first field means "every five minutes"/
+
Time values can be set to * (for all) or * divided -- e.g., */5 in the first field means "every five minutes"
  
  

Revision as of 00:18, 13 January 2005

edits a user's cron table -- hence the name -- by running an editor. The actual tables for each user are kept in /etc/cron/tabs but are not meant to be edited directly.

The tables are in this format:

#min hour dayofmonth  monthofyear  dayofweek  command
0    12      14         2           *        fsck -y

Time values can be set to * (for all) or * divided -- e.g., */5 in the first field means "every five minutes"


Common flags

-u username edit username table
-e edit table (or create empty one if none exists)
-r remove table
-l list the current table
Personal tools