On 15/06/2020 11.56, Anton Aylward wrote:
On 12/06/2020 12:45, Carlos E. R. wrote:
However, I'm afraid you can't then tell cron to use mailx in the "MAILTO=" line.
That can be taken care of outside of CRON. CRON will invoke some mailer and you simply link that to mailx.
I understand cron invokes /usr/sbin/sendmail directly. CRON(8) System Administration CRON(8) ... -m This option allows you to specify a shell command to use for sending Cron mail output instead of using sendmail(8) This command must accept a fully formatted mail message (with headers) on standard input and send it as a mail message to the recipi- ents specified in the mail headers. Specifying the string off (i.e., crond -m off) will disable the sending of mail. maybe someone has concocted a script named /usr/sbin/sendmail which will call mailx instead. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)