LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-22-2005, 11:32 PM   #1
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Redirect crond mail ?


I want to redirect the user to which crond mails are sent without changing the uid the job runs as.

I found only a passing reference to adding
MAILTO="account_name"
Into the cron script, replacing it with my account ?

If it's indeed that easy, do I add that at the top of the individual scriptlets or in the crontab itself ?

Last edited by michaelsanford; 07-23-2005 at 02:35 AM.
 
Old 07-23-2005, 01:30 PM   #2
mattLSO
Member
 
Registered: Jun 2005
Posts: 43

Rep: Reputation: 15
In the crontab itself put MAILTO=user@email.com at the top as shown below.

Quote:
MAILTO=user@blah.com
2 * * * * /blah/command
Regards
 
Old 07-23-2005, 02:00 PM   #3
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Original Poster
Rep: Reputation: 30
Of course! It just uses sendmail so I don't /have/ to sent it to a local user. That's wicked, thanks

Last edited by michaelsanford; 07-23-2005 at 02:01 PM.
 
  


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
redirect all users mail to admin tanveer Linux - Networking 4 03-03-2005 10:39 PM
redirect matt1982 Programming 2 12-20-2004 10:53 AM
redirect spank Linux - Newbie 2 03-01-2004 04:38 PM
Redirect sheek Programming 1 07-25-2003 01:53 PM
e-mail address redirect? WorldBuilder Linux - Networking 6 05-18-2003 10:15 PM


All times are GMT -5. The time now is 04:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration