LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2005, 03:09 AM   #1
jorasmi
Member
 
Registered: Apr 2002
Location: Philippines
Distribution: Slackware 10.2
Posts: 111

Rep: Reputation: 15
Mail question


I have cron that automatically backup my files. Everytime backup is run, it sends me an email. Is there any way I can stop cron from sending me email? and also how do I delete email using gnu "mail" program? Thanks in advance
 
Old 03-28-2005, 03:25 AM   #2
djbanaan
Member
 
Registered: Aug 2003
Location: Haarlem, The Netherlands
Distribution: Slackware, FreeBSD
Posts: 178

Rep: Reputation: 30
To stop cron from mailing you the results of your backup just append

Code:
 > /dev/null 2>&1
to the appropriate line in your crontab, this will redirect all the output to /dev/null instead of mailing it.

You can delete mail in the "mail" program by pressing "d".

Last edited by djbanaan; 03-28-2005 at 03:27 AM.
 
Old 03-28-2005, 10:53 PM   #3
jorasmi
Member
 
Registered: Apr 2002
Location: Philippines
Distribution: Slackware 10.2
Posts: 111

Original Poster
Rep: Reputation: 15
thanks!
 
Old 03-29-2005, 02:20 AM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
I am just beginning to appreciate the usefulness and power of /dev/null.

Looks like I am not such a Linux geek after all. Or, just call me newbie.
 
  


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
E-Mail Question lambmt Linux - Networking 6 11-13-2003 01:31 PM
mail question odious1 Linux - General 1 11-05-2003 10:02 AM
Mail Question cartfanatic39 Linux - General 2 10-16-2003 01:00 PM
Question re: Mail phil1076 Linux - Software 2 07-18-2003 11:22 AM
mail question plisken Linux - General 1 04-18-2003 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:10 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