[Eug-lug] Q about Sendmail

Matthew Jarvis mattj at bikefriday.com
Thu Aug 16 15:56:21 PDT 2007


It's prolly unrelated to a problem I'm having, but I came across this in 
a bash script that is supposed to send me an email when a certain task 
is done.


# change these to suit your needs
SENDMAIL=/usr/sbin/sendmail  # your Mail-Transfer-Agent
SENDMAIL_OPTS=               # and its required options

Then later when it fires off the command, it looks like this:


cat $TEMPFILE | $SENDMAIL $SENDMAIL_OPTS "$@"


It looks to me like the first ref to SENDMAIL_OPTS is a dangling 
reference, but then later on the command that runs supplies the parameter.

I wonder if the first ref is a problem or not.


-- 
Matthew S. Jarvis
IT Manager
Bike Friday - "Performance that Packs."
www.bikefriday.com
541/687-0487 x140
mattj at bikefriday.com


More information about the EUGLUG mailing list