浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

CronHowto - Community Ubuntu Documentation

 
 

  

 

Introduction

  

Cron is a system daemon used to execute desired tasks (in the background) at designated times.   

A crontab is a simple text file with a list of commands meant to be run at specified times. It is edited with a command-line utility. These commands (and their run times) are then controlled by the cron daemon, which executes them in the system background. Each user has a crontab file which specifies the actions and times at which they should be executed, these jobs will run regardless of whether the user is actually logged into the system. There is also a root crontab for tasks requiring administrative privileges. This system crontab allows scheduling of systemwide tasks (such as log rotations and system database updates).

More information can be found:

 man crontab

 

or from the OpenGroup specifications.

An alternative in Gnome-based Ubuntu systems is to use the Gnome Scheduled tasks tool (from the gnome-schedule package) in Applications --> System Tools.

 

Using Cron

 

To use cron for tasks meant to run only for your user profile, add entries to your own user's crontab file. Start the crontab editor from a terminal window:

crontab -e
posted on 2012-04-23 11:04  lexus  阅读(204)  评论(0编辑  收藏  举报