LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-26-2004, 06:37 AM   #1
venkat_sde
LQ Newbie
 
Registered: Aug 2004
Location: india
Posts: 2

Rep: Reputation: 0
Login Alert Mails Problem


sir,
I am facing a problem in REDHAT LINUX .
there are six cronjobs running for every ten minites .for Every cronjob running, the system is giving alert mail .the mail contents are as given
below

from root Thu aug 26 06:32:02

from : root@aptnlr2> /backup/snip

to : root @ aptnlr2

sub : cron <root @ aptnlr2 > /backup/snip

x-cron-env:<SHELL=/bin/sh>
x-cron-env:<PATH =/usr/bin: /bin>
x-cron-env:<logname root>

with the above it is giving the subject with full description.


Now I don't want to get that alert mails , whenever we login as root or any user.
for this I studied /etc/aliases file also.in that it has given , we can divert the mail to some other user. but I want to suppress it. with this effect
/var/log/cron also increasing.

please give me reply how to stop.


VENKAT
 
Old 08-26-2004, 03:25 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
At the end of every command in /etc/crontab add '>>/dev/null' (redirect to /dev/null). It should stop cron from sending mail.
 
Old 08-28-2004, 06:29 AM   #3
venkat_sde
LQ Newbie
 
Registered: Aug 2004
Location: india
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks , the problem was solved.
Thank you very much.
Venkat_sde
 
  


Reply



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
Snort alert Problem bharathvn Linux - Security 9 11-21-2005 08:24 AM
stop bash checking mails at login phil.d.g Linux - General 2 09-09-2005 07:33 AM
red alert 2 problem Ensign RedShirt Linux - Software 5 01-26-2005 09:15 AM
Mozilla Problem, ALert!! help please ClericPreston Linux - General 3 07-22-2004 04:46 AM
ALERT!!! ALERT!!! I messed up the UNIX!!! Firew Linux - Software 1 11-05-2001 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:41 AM.

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