If I enter from the command line
logger "This is a test"
in my syslog I get:
Aug 9 07:54:22 computername root: This is a test
but if I use the exact same line in a script, when the script is run, I get:
Aug 9 08:00:01 computername root: This is a test
Aug 9 08:00:01 computername sSMTP[3820]: Creating SSL connection to host
Aug 9 08:00:01 computername sSMTP[3820]: SSL connection using DHE_RSA_AES_256_GCM_SHA384
Aug 9 08:00:03 computername sSMTP[3820]: Sent mail for [email protected] (221 2.0.0 mx4.smtphost.com cmsmtp closing connection) uid=0 username=root outbytes=642
Can someone enlighten me as to what is happening here? How do I prevent invoking mail command?
Ubuntu 16.04, munged names to anonymize the log data...
0 Answers