Featured

Sharepoint Row Highlight using Behaviors

If you have a long list of items in a Sharepoint list, you may find it convenient to highlight the current row the cursor is on. While there are couple of ways of accomplishing this, this article...
+ Full Article

More Featured Articles

Most Read

Most Read

Setting up Team Discussion Board

SharePoint 2007 has a Team Discussion Board that is used to initiate discussion and get replies on topics of interest. This article outlines the steps required to setup a discussion board, managing...
+ Full Article

More Popular Articles

Recent Articles

Recent Articles

Repeating Excel Header Rows

If your worksheet has several pages, it will be useful to have the header row repeat in all the pages. This will improve productivity as the user need not flip to the first page to view the header...
+ Full Article

More Recent Articles
crontab command PDF Print
User Rating: / 0
PoorBest 
Computing - Linux
crontab command found in *ix Operating Systems is used to schedule tasks that have to be run at periodic intervals. These tasks or jobs that have been so scheduled are known as cron jobs.

Each user can have their own crontab. If cron.allow file exists in /var directory, then a user must be listed in that file in order to use the command. If no cron.allow file exists but cron.deny exists, then the user must not be listed in the cron.deny file to use the crontab command. If both cron.allow and cron.deny files are not available, then only the 'root' user can execute the command.

Usage

A crontab file takes in five arguments (such as minutes, hours, day etc) followed by the command to be executed. Any of these fields can also have * (asterix) as a value (denotes all possible values).

Minutes: 0 - 59
Hour: 0 - 23
Day of Month: 1 - 31
Month: 1 - 12
Day of week: 0 - 6 (Sunday =0)

Example

Let us assume all the files under 'wip' directory have to deleted on a daily basis at 8:30 P.M. The crontab for this example would be as follows:
  • Create a crontab file
crontab -e (This will create a new crontab file if none is available or replace one)
  • Enter the following arguments:
30 20 * * * rm /tsc/wip/* In the above 30 denotes the minute, 20 the hour the command is to be executed. The * denotes that the command is run all days and months.

Syntax

  • crontab -e : for editing your crontab file. If no crontab file is available, it creates one.
  • crontab -l : lists the current crontab file.
  • crontab -r : deletes the crontab file.
{mxc}
Trackback(0)
Comments (0)add
Write comment

security image
Write the displayed characters


busy
Last Updated on Monday, 12 November 2007 20:48
 

now browsing!

We have 22 guests online

Sharepoint

Setting up Team Discussion Board

SharePoint 2007 has a Team Discussion Board that is used to initiate discussion and get replies on topics of interest. This article outlines the steps required to setup a discussion board, managing...
+ Full Article

More on Sharepoint

Windows

Windows Logo Key Shortcuts

Windows Logo key treasures good number of shortcuts to use with Windows. This article lists them, verified for Windows XP. Is it different in Vista? Use the 'Comments' form to list. Click...
+ Full Article

More on Windows
 

Sedo - Buy and Sell Domain Names and Websites project info: referpages.com Statistics for project referpages.com etracker® web controlling instead of log file analysis