Brad Doster wrote:

> I guess writing this up was therapeutic. :-)
>
> Getting mail to work from within the script was a matter using double
> quotes -- instead of...
>
> /sbin/ifconfig | mail -s $CURRTIME-$DYNIPADDR [EMAIL PROTECTED]
>
> ..using...
>
> /sbin/ifconfig | mail -s "$CURRTIME-$DYNIPADDR" [EMAIL PROTECTED]
>
> ..got it to work.
>
> As for concatenating variables, the following worked...
>
> SUBJECT="$CURRDATE"'-'"$DYNIPADDR"
>
> ..allowing me to use...
>
> /sbin/ifconfig | mail -s $SUBJECT [EMAIL PROTECTED]
>
> ..in the script without errors.
>
> I haven't figured out how to get elm to send without echoing "Sending
> mail..." yet, so if anyone has the answer to that, I'm still listening.

can you redirect the output of the command to /dev/null?

eg. elm blahblah blah blah >/dev/null

I don't hink cron would see the output then since it is not going to stdout.
Untested but worth a try.

Bret



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to