Primal Habits
It is currently Sun Mar 26, 2017 7:10 am


Feed

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: cron MAN page
PostPosted: Mon Nov 29, 2010 2:11 pm 
Offline
User avatar

Joined: Sun Apr 25, 2010 1:02 pm
Posts: 115



cron
daemon to execute scheduled commands

Syntax
cronHow to run the cron daemon: Cron should be started from /etc/rc or /etc/rc.local. It will return immediately, so you don't need to start it with '&'.

What cron does
Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. Cron also searches for /etc/crontab and the files in the /etc/cron.d/ directory, which are in a different format.

Cron then wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute

Modifying a cron jobTo edit a users crontab entry, log into your system for that particular user and type crontab -e.
The default editor for the 'crontab -e' command is vi.
Change the default editor by running: export VISUAL='editor'

cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modfied. Note that the crontab command updates the modtime of the spool directory whenever it changes a crontab.

Mailing output
Cron will email to the user all output of the commands it runs, to silence this, redirect the output to a log file or to /dev/null
You can also redirect email to the user named in the MAILTO environment variable in the crontab, if such exists.

Cron comes from the word chronos, the Greek word for time.

_________________
Check Out RouterHead8080 T.V.



Share on FacebookShare on TwitterShare on TuentiShare on SonicoShare on FriendFeedShare on OrkutShare on DiggShare on MySpaceShare on DeliciousShare on Technorati
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


Related topics
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Cron At and Batch

RouterHead8080

0

3094

Mon Nov 29, 2010 2:20 pm

RouterHead8080 View the latest post

There are no new unread posts for this topic. How to cancel cron job

RouterHead8080

0

1247

Tue Nov 22, 2011 11:51 am

RouterHead8080 View the latest post

There are no new unread posts for this topic. Setting cron job for clamav

RouterHead8080

0

1320

Tue Nov 22, 2011 11:28 am

RouterHead8080 View the latest post

 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron

Affiliates    Terms of use    Privacy policy   

Primal Habits, a Sceptersoft Company
Copyright © 2010 - 2017 Sceptersoft LLC. All rights reserved.