Yeah, I just found some sample syntax for that a bit ago, input as a cron
entry here:

0 15 * * * /usr/bin/fetchmail >/dev/null 2>&1

bd




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bret Hughes
Sent: Sunday, December 10, 2000 10:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Auto-mail Script Woes (Solved)


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



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

Reply via email to