command line send mail?

General support questions
Post Reply
cuongtl
Posts: 5
Joined: 2019/11/27 01:38:23

command line send mail?

Post by cuongtl » 2020/05/26 07:28:40

Hi all,
i want to send an email via the script but i dont want to display my password in clear text. Anyone can show me a method?

Thanks in advance!

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: command line send mail?

Post by tunk » 2020/05/26 10:29:08


MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: command line send mail?

Post by MartinR » 2020/05/26 22:34:03

Please be aware that the Linux Journal article dates from April 2010. Netcat is NOT available in C7 under the name nc, so don't try installing it! The last stable release appears to have been 13 years ago in 2007.

Now the good news. Nmap developed the original netcat from 2005 onwards under the name ncat. You need to install nmap-ncat and use the ncat command. Disclaimer: this is as far as I've gone, so don't come back asking me questions or blaming me!

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: command line send mail?

Post by scottro » 2020/05/26 23:00:50

Just in general, you can find out what package has a program with yum provides */nc (for example.) On CentOS-8 it's dnf provides but it works the same. I have a dated page on the provides option, because it was asked so frequently when I was a moderator on Fedora forums at
https://www.scottro.net/yumprovides.html but you probably don't even need that. Just if you try yum install netcat or nc and can't find it, you can use the provides option.
New users should check the FAQ and Read Me First pages

Post Reply