- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Scripting Mail on Suse
Operating System - Linux
1753259
Members
4746
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-23-2006 01:04 PM
тАО02-23-2006 01:04 PM
Hey everyone,
I'm trying to use a script to send a mail notification. I've tried using nail (ie. nail -s "Subject" me@domain.com) but it is requiring an interrupt (Cntl D) to complete. How can I script this? Thanks.
I'm trying to use a script to send a mail notification. I've tried using nail (ie. nail -s "Subject" me@domain.com) but it is requiring an interrupt (Cntl D) to complete. How can I script this? Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2006 04:36 PM
тАО02-23-2006 04:36 PM
Solution
See this:
http://nail.sourceforge.net/man/nail.1.html
It is useful. Sending mail through scripts are as,
http://nail.sourceforge.net/man/nail.1.html#30
--
Muthu
http://nail.sourceforge.net/man/nail.1.html
It is useful. Sending mail through scripts are as,
http://nail.sourceforge.net/man/nail.1.html#30
--
Muthu
Easy to suggest when don't know about the problem!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2006 05:22 PM
тАО02-23-2006 05:22 PM
Re: Scripting Mail on Suse
You need to pass the body, create a text file with the body contents, for example, message.txt, and use
mail -s "subject" user@domain.com < message.txt
The message.txt can be any text file, this could be the log of an application or a backup.
mail -s "subject" user@domain.com < message.txt
The message.txt can be any text file, this could be the log of an application or a backup.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2006 02:51 PM
тАО02-27-2006 02:51 PM
Re: Scripting Mail on Suse
Very helpful, gents. Many thanks!!!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP