13 Jun
2020
13 Jun
'20
16:24
Dave Howorth wrote:
On Sat, 13 Jun 2020 15:41:05 +0200 Per Jessen <per@computer.org> wrote:
Bengt Gördén wrote:
simplest way to send mail from cron
I'd say that the easiest way to send mail from a box without any small helper programs is this:
Adjust for your needs and put in a script and call from cron
cat > /dev/tcp/yourserver.tld/25 <<EOF
Very clever, I didn't know about that /dev/tcp.
# ls /dev/tcp ls: cannot access '/dev/tcp': No such file or directory
Yes, /dev/tcp is a bash built-in, only works with piping/redirdction. -- Per Jessen, Zürich (20.1°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org