I've gotten this as a concept:
BEGIN { print "Email Addresses: "
while ( (getline name < "addfile" > 0)
print "/usr/bin/sendmail " name " < message01
}
The printed result is:
Email Addresses:
/usr/bin/sendmail doctor01@emailaddr.org < message01
/usr/bin/sendmail doctor02@emailaddr.org...
Here's the long of it.
I need to send an e-mail notification to a physician when one of her patients is seen in the ER. I get a report at midnight that I parse into however many e-mails, while creating an email address in a separate corresponding however many one line files.
What I can't get...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.