Sponsored Content
Full Discussion: Automated e-mailer problem
Top Forums Shell Programming and Scripting Automated e-mailer problem Post 302708595 by stevensw on Monday 1st of October 2012 09:30:30 PM
Old 10-01-2012
Automated e-mailer problem

I am trying to write a bash e-mailer script on a host that has a bunch of CPUs and makes use of all of them. It e-mails a huge list of people, so I wanna save time running this script if I can.

Code:
for uid in `echo $members`
do
(
...
/usr/sbin/sendmail -t < $tmp
...
) &
done

wait

What e-mails it does send get sent concurrently, but most don't get sent at all.

There is a serial version of this script that definitely sends out more e-mails.

I'm wondering if those running sendmail are blocking others from running sendmail on the same CPU?

Is there anything I can do? Thanks
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

automated back up problem

Hi.. I am using HP UX 11.0 i want to make automated back up from SAM back up tool.... so i mentioned the file systems and back up device /dev/rmt/0m and time 0:00 and days of the week........ but it was not successful.....the back up job was not started on specified time..... i am in... (7 Replies)
Discussion started by: Prafulla
7 Replies

2. UNIX for Dummies Questions & Answers

Mailer Deamon Question

does somebody knows why when my IRIX system is booting it stop for more than 3 minutes in MAILER DEMOND.??? Thanks in advance for your help (1 Reply)
Discussion started by: michoacan2000
1 Replies

3. UNIX for Dummies Questions & Answers

UNIX command line mailer

What is the difference betweeen MAILX and SENDMAIL. I have SENDMAIL configured in my system, how is it different then MAILX, espicially in the syntax of sending mail from the command line. Thanks in advance (3 Replies)
Discussion started by: dctm_deve
3 Replies

4. Shell Programming and Scripting

Drop mailer-daemon mails

Hi all, I am using a Solaris 10 machine as SMTP server. All MAILER-DAEMON mails that are not delivered are getting stuck in /var/spool/mqueue . Is there any way to DISCARD/DROP/DELETE such mails automatically so that they don't pile up in my queue ? regards (1 Reply)
Discussion started by: Junaid Subhani
1 Replies
mailstats(8)						      System Manager's Manual						      mailstats(8)

NAME
mailstats - Displays statistics about mail traffic SYNOPSIS
mailstats [-o] [-C cffile [-f stfile] FLAGS
Do not display the name of the mailer in the output. Use cffile as the name of the sendmail "cf" file instead of /var/adm/sendmail/send- mail.cf. Use stfile as the input statistics file instead of /var/adm/sendmail/sendmail.st. DESCRIPTION
The mailstats command reads the information in the /var/adm/sendmail/sendmail.st file (or in the file specified with the -f flag), formats it, and writes it to standard output. Note also that you can change the location of the sendmail.st file by editing its pathname in the sendmail.cf file. EXAMPLES
The format of the information is shown in the following example, in which the first field (M) contains a number that indicates the position of that mailer in the sendmail.cf file, starting at 0 (zero). For example, the first mailer in the sendmail.cf file corresponds to the number 0 in the mailstats display, the second mailer corresponds to the number 1, and so on. Statistics from Thu Feb 17 11:20:01 2000 M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer 1 50 77K 1 3K 0 0 local 6 43 59K 58 99K 0 0 smtp ============================================================ T 93 136K 59 102K 0 0 The fields in the report have the following meanings: Indicates the position of the mailer in the sendmail.cf file. Indicates the number of messages received by the local machine from the indicated mailer. Indicates the number of bytes in the messages received by the local machine from the indicated mailer. Indicates the number of messages sent from the local machine using the indicated mailer. Indicates the number of bytes in the messages sent from the local machine using the indicated mailer. Indicates the number of rejected messages. Indicates the number of discarded messages. Indicates the name of the mailer. If sendmail transmits mail directly to a file, such as the dead.letter file or an alias target, the message and byte counts are credited to the prog mailer, as defined in the sendmail.cf file. However, mailstats will still default to var/adm/sendmail/sendmail.st. FILES
Specifies the command path Contains system statistics Contains configuration information for sendmail RELATED INFORMATION
Commands: sendmail(8) delim off mailstats(8)
All times are GMT -4. The time now is 04:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy