LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2002, 07:35 AM   #1
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
New to cron programming: need to find a good tutorial


I've never written anything for cron (or done any programming outside of Director Lingo or Flash ActionScript). I want to create a daily backup routine for my data files. Where is a good tutorial for general cron scripting?

And: would cron be the best tool to write scripts that (a) check file modification dates/times, (b) creates a .tar for all files modified in the last 24 hours and (c) sends me an email when my backup directory has reached 600MB, saying that it's time to burn a CD?

Or would that task list be better to do in another scripting environment with cron just running those scripts on a daily basis?

Thanks!


Last edited by lhoff; 03-30-2002 at 07:41 AM.
 
Old 03-31-2002, 03:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Cron can be used for all you mentioned.
Cron scripts are just normal Linux scripts. So what you neeed is a guide to bash/sh scripting. Look at www.linuxdoc.org. There you'll find HOWTOs concerning bash and advanced bash scripting.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming in C Tutorial Mercurius Programming 22 05-08-2006 06:01 PM
Any good thread programming theory (for multiple cpus) book/tutorial karlan Programming 3 10-05-2004 12:48 AM
looking for X programming tutorial (C or C++) qwijibow Programming 1 02-02-2004 09:33 AM
a good cron/scp tutorial eduac Linux - Security 4 08-29-2003 11:19 AM
Good introductory C programming tutorial ClayOgre Programming 2 01-29-2003 12:02 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration