Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Code Newbie > Code Newbie News

Reply
 
LinkBack Thread Tools Display Modes
Old 04-05-2004, 02:20 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
CLI for noobies: stay regular with cron and crontab

OK, noobies, gather round. It's Monday morning. The regular time for another expedition into the land of Linux beyond the GUI. Your mother may have told you that it was good to be regular, but most likely she didn't tell you about how cron and crontab can help keep you that way.

Linux is really not designed to be turned on and off like Windows often is. In fact, it is almost assumed that you will leave your machine running 24x7, no matter whether you use it for an hour or for twelve hours a day.

Most distributions take advantage of that fact to schedule recurring maintenance jobs to be run while you're least likely to be around. Things like trimming system log files, for example. Otherwise they might eventually fill every byte of available disk space. That's where cron and crontab come in, and that's our topic for the week.

Cron is started at boot time, when it gathers up all the entries in the various system and user-level crontab files it knows about and loads their contents in memory. From then on, cron awakens once a minute to see if any of those tasks are due to be run at the current minute, hour, day of month, month of year, or day of week. Crontab is the program which is used to to create and to modify those various crontab files. Crontab has to be run before cron knows about any changes you may make to a crontab file.

Official Article Here
__________________
Mike
sde is offline   Reply With Quote
Old 04-05-2004, 05:24 PM   #2 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Uhh, yeah and there's a <cron tutorial> I did from a couple years back... :p
bdl is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 06:35 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting