LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-12-2007, 04:38 PM   #1
kirtikjr
Member
 
Registered: Apr 2007
Location: banglore
Distribution: RedHat EL v4
Posts: 35

Rep: Reputation: 15
how to send the output of cronjobs to another email address ?


how to send the output of cronjobs to another email address ?
 
Old 07-12-2007, 05:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,311
Blog Entries: 54

Rep: Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860
Depends. If you want *all* email to another address then you use the crontab "MAILTO" variable, else if the application can output to stdout/err you could try to "sbin/application --args 2>&1| mail -s "some subject" user@ho.st".
 
  


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
Send email when TCP/IP address changes scherfistv Linux - Networking 3 07-11-2006 05:02 PM
Send logs to email address bond00 Linux - Networking 1 03-28-2006 06:01 PM
Send root mail to email address GUIPenguin Linux - General 1 03-01-2005 07:16 PM
send mail to external email address hamish Linux - Networking 8 12-10-2004 09:17 AM
how to send logs (etc.) to email address??? win32sux Slackware 7 08-26-2004 12:48 PM


All times are GMT -5. The time now is 07:49 AM.

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