- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mailx: multiple receiptants
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
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-2004 03:44 AM
тАО02-16-2004 03:44 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2004 03:46 AM
тАО02-16-2004 03:46 AM
SolutionJust keep entering recipients separated by spaces
cat filename | mailx -s "Subject here" user1@company.com user2@company.com user3@company.com
and on up to the command line limit.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2004 03:46 AM
тАО02-16-2004 03:46 AM
Re: mailx: multiple receiptants
You can seperate the mailids with a comma.
mailx -s "subject" mailid1,mailid2 < your_file
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2004 07:29 AM
тАО02-16-2004 07:29 AM
Re: mailx: multiple receiptants
DATA=/path/resultsfile
MLIST=/path/filename
for ADDY in `cat $MLIST|grep -v #|awk '{ print $1}'`
do
cat $DATA|mailx -s "Subject" $ADDY
# alternative: send as attached file
uuencode $DATA $DATA|mailx -s "Subject" $ADDY
done
This lets non-root users add or subtract their name from the mailing list. This mailing list is in a common area available so anyone in the company can subscribe or unsubscribe. Samba/CIFS is handy for this.
A typical mailling list has a line or two of comments at the top (marked with a #) instructing the users to put their addys on a single line followed by a carriage return.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 02:40 AM
тАО02-17-2004 02:40 AM
Re: mailx: multiple receiptants
# Local aliases
sysadmin : yourbox@domain.com, yourfriend@yahoo.com
backupadm : backupadmin@domain.com, yourbox@domain
root : yourbox@domain.com
Make sure you stop, re-start maild and you will be able to reach 2 or more people with:
mailx -s "subject" sysadmin < your_file
Regards,
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2004 02:47 AM
тАО02-17-2004 02:47 AM