- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how send cron job logs to gmail id?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 06:29 AM
тАО02-16-2010 06:29 AM
how send cron job logs to gmail id?
How to send cron job logs to gmail id from Linux server? I am using RHEL 4AS.
Please help
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 06:54 AM
тАО02-16-2010 06:54 AM
Re: how send cron job logs to gmail id?
-Create a .forward file on the home directory of the user running the cron job. That file should contain the addresses you want to forward mail to (that will forward all of that user's incoming emails, though).
-Use postfix (or similar) to compose and send mails from within the very cron job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 07:15 AM
тАО02-16-2010 07:15 AM
Re: how send cron job logs to gmail id?
In crontab
Your system must be able to deliver mail directly to the Internet or be configured to a relay server.
Mail to most services like gmail requires the mail originate at a fixed IP address and the domain name in the email address and server IP address be verifiable by DNS lookup.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 07:44 AM
тАО02-16-2010 07:44 AM
Re: how send cron job logs to gmail id?
How to configuare to send logs to gmail?
Thnaks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2010 08:08 AM
тАО02-16-2010 08:08 AM
Re: how send cron job logs to gmail id?
Try this script.
http://www.hpux.ws/mailfile2
Alter the darned thing so it doesn't send me mail.
Again note that gmail might eat your mail if a lot of details are not lined up.
Also, some companies have a policy against this kind of data being sent to gmail, so make sure you are good with regards to data security policy.
If you think this message has been helpful, please assign points. I collect them. Kind of like stamps.
No electrons were harmed in the creation of this post.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 12:04 AM
тАО02-17-2010 12:04 AM
Re: how send cron job logs to gmail id?
mail -s subject abc@pqr.com < file name
this would sent content to specified account.
As said above gmail is not a good idea from security, so keep it in mind.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2010 03:10 AM
тАО03-19-2010 03:10 AM
Re: how send cron job logs to gmail id?
MAILTO=yourgmail@gmail.com
By default it uses local smtp server, not sure if gmail policies will allow them to accept mail from your IP.