Re: Conversion from Centos 5 to Centos 7 & mailx changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, 5 Sep 2020 at 10:19, Gregory P. Ennis <PoMec@xxxxxxxxx> wrote:

>
> Stephen and Kenneth,
>
> Thank you very much for your help.
>
> I tried 'MAILRC=/dev/nul' which I put in /etc/mail.rc as
>
> 'set MAILRC=/dev/null'
>
>
No that is meant to be a shell environment variable so that it does not try
to read /etc/mail.rc.. if you have it in /etc/mail.rc its not going to help
any.


> But I did not identify that this changed any behavior.
>
> The link below was very helpful Stephen thank you for your kindness in
> digging this out for
> me.
>
> https://www.digitalocean.com/community/tutorials/how-to-send-e-mail-alerts-on-a-centos-vps-for-system-monitoring
>
> In the end the above link gave me a grammar and syntax that worked, but it
> is requiring a
> change in every line of code that the 'mail' command had been used.  the
> following syntax
> and grammer gave me what I needed.
>
> echo | mail -s "Subject" -r from@address -q /loc/to/body.txt email@address
>
> Thank you again for your help!!!
>
> Greg
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen J Smoogen.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux