LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-22-2005, 10: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 01:35 AM.
 
Old 07-23-2005, 12: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, 01: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 01:01 PM.
 
  


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

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

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