- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Batch Mailing
Operating System - HP-UX
1753465
Members
4716
Online
108794
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
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-05-2004 05:40 AM
тАО02-05-2004 05:40 AM
Batch Mailing
Greetings,
I have a question regarding email generation.
Right now, a process generates a shell script that contains 1000 to 2000 emails to be sent, Timesheet Email Alerts, like this:
mailx -s "Alert Reminder" joe@abc.com < message
mailx -s "Alert Reminder" jim@abc.com < message
...
.
.
The email Admins don't like it, they want me to change it and send the entire batch in one time, instead of multiple mailx commands.
Now, is there really a performance gain doing it like above versus one batch ?
Also, what would be the best way to implement this in a single batch versus the above ? for privacy concerns, I don't want all the email addresses to appear in the "To:" box when someone gets his/her alert.
Thank you.
I have a question regarding email generation.
Right now, a process generates a shell script that contains 1000 to 2000 emails to be sent, Timesheet Email Alerts, like this:
mailx -s "Alert Reminder" joe@abc.com < message
mailx -s "Alert Reminder" jim@abc.com < message
...
.
.
The email Admins don't like it, they want me to change it and send the entire batch in one time, instead of multiple mailx commands.
Now, is there really a performance gain doing it like above versus one batch ?
Also, what would be the best way to implement this in a single batch versus the above ? for privacy concerns, I don't want all the email addresses to appear in the "To:" box when someone gets his/her alert.
Thank you.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 05:43 AM
тАО02-05-2004 05:43 AM
Re: Batch Mailing
Hi Aziz,
Yes. There will be a performance gain. With every message sending, you are reading the file 'message' per mailx process.
However, once the file is read first time, it will be available in buffer cache for subsequent reads. But still there will be a slight overhead of system calls.
You can do it yourself. Have the script run with 'timex ./script'. Modify the script to add multiple recepients and run it again with timex and see the difference. You should see some incrase in "usr time" and quite a bit in "sys time".
-Sri
Yes. There will be a performance gain. With every message sending, you are reading the file 'message' per mailx process.
However, once the file is read first time, it will be available in buffer cache for subsequent reads. But still there will be a slight overhead of system calls.
You can do it yourself. Have the script run with 'timex ./script'. Modify the script to add multiple recepients and run it again with timex and see the difference. You should see some incrase in "usr time" and quite a bit in "sys time".
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 05:59 AM
тАО02-05-2004 05:59 AM
Re: Batch Mailing
while read -r recip
do
mailx -s "Alert Reminder" $recip < message
done < recipient.list.text
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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