- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shell script using mailx or sendmail for multiple ...
Operating System - HP-UX
1819791
Members
3274
Online
109607
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
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
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
тАО08-18-2010 09:32 AM
тАО08-18-2010 09:32 AM
shell script using mailx or sendmail for multiple receiver ?
Is there any sample script for deliver messages to multiple reciver using ksh ?
Thank you.
Thank you.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2010 09:58 AM
тАО08-18-2010 09:58 AM
Re: shell script using mailx or sendmail for multiple receiver ?
If you have a file with your message:
mailx -s "subject of message" user1@foo user2@foo < message-text-file
mailx -s "subject of message" user1@foo user2@foo < message-text-file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2010 07:04 PM
тАО08-18-2010 07:04 PM
Re: shell script using mailx or sendmail for multiple receiver ?
And for large mailing lists, you can create a alias in /etc/mail/aliases with dozens of addresses:
biglist : me@com1.org, you@them.biz, us@abc.com
and for multiple lines, continue the line with a trailing \. Then run the command newaliases to update sendmail.
Now you can use mailx like this:
mailx -s "some subject" biglist < text-to-email
Bill Hassell, sysadmin
biglist : me@com1.org, you@them.biz, us@abc.com
and for multiple lines, continue the line with a trailing \. Then run the command newaliases to update sendmail.
Now you can use mailx like this:
mailx -s "some subject" biglist < text-to-email
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2010 10:11 PM
тАО08-18-2010 10:11 PM
Re: shell script using mailx or sendmail for multiple receiver ?
According to the man page of mailx, you can even define groups/aliases in your own '.mailrc' file.
Every problem has at least one solution. Only some solutions are harder to find.
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP