LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-26-2001, 10:18 AM   #1
T-Rex
LQ Newbie
 
Registered: Sep 2001
Posts: 1

Rep: Reputation: 0
Cool Cron job


Hello forum,

I'm new to linux.

I'm running redhat 7.1 and webmin.

My question is concerning cron.

I would like to setup a cron job in redhat 7.1 or webmin to email me results from a logfile.

could someone point me in the right direction.

Any help would be greatly appreciated.

 
Old 09-26-2001, 11:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
what do you mean 'results fom a logfile'? You just mean to email you a log file every so often..?

Well, that's a cron thing, webmin is irrelevant.

I think all you should need to do is to actually create a cron job file which simply 'cat's (or less or more or whatever) teh log file as and when you want it to. I *think* that simply catting it will email it to the postmaster defined in the /etc/crontab file as MAILTO=

Putting the script file into one of the /etc/cron.xxxx directories (or creating your own new one) is the easiest way to get a cron job going
 
  


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
Cron Job petenyce Linux - Newbie 5 10-11-2005 04:03 PM
cron job working2hard Programming 6 07-28-2004 09:12 PM
cron job ? johnyy Linux - Software 3 12-10-2003 06:00 PM
Cron Job imanahmadi Linux - Newbie 1 07-03-2003 11:39 PM
cron job? luap Linux - Software 2 03-16-2003 08:48 AM


All times are GMT -5. The time now is 03:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration