Operating System - HP-UX
1833759 Members
2467 Online
110063 Solutions
New Discussion

concurrent execution produce muplitple Emails (eml)

 
SOLVED
Go to solution
Vlad_11
Frequent Advisor

concurrent execution produce muplitple Emails (eml)

Hi,
I have a set of 8 shells that running from cron all the same time. Each script doing some emails with ELM to individual addresses (this works just fine) then at the end each of them sends status confirmation to our Control room and here we have some weird stuff.
One shell produce 4 emails instead of single, couple of others could not present at all.
Every day new pattern. I suspect that it can be due to concurrent execution either on UNIX or later or Wâ 2000 mail server (or whatever).
So far our W guys donâ t think anything wrong about their server.
Anybody can give any creative leads ?

Thanks to
beer or not beer
1 REPLY 1
Steven E. Protter
Exalted Contributor
Solution

Re: concurrent execution produce muplitple Emails (eml)

You can cut lots of emails if you background the script that creates the mail.

Try this script in a while loop as follows:

while
do
mailfil2 p1 p2 p3 p4 subject ...
done

See attachment.

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