On 07May2020 07:38, Robert Moskowitz <rgm@xxxxxxxxxxxxxxx> wrote:
On 5/6/20 11:06 PM, Gordon Messmer wrote:
Technically, no. If you only want to deliver the messages locally,
then you only need an MDA, not an MTA. In fact, you could just create
/usr/sbin/sendmail as a simple shell script:
#!/bin/sh
(cat; echo) >> $HOME/cron-output
Now I am getting some place. But I would want it to go to
/var/spool/mail/$USER
Also there is already a /usr/sbin/sendmail on the system. I am
concerned that if I replace it with your example, a later update will
remove it.
Indeed. Find out what package owns it. "rpm -qf /usr/sbin/sendmail" used
to be the go, not sure of the matching dnf or yum incantation.
I looked at man crontab.5 and did not see a way to specify the mail
command to run for the cron output.
There isn't. It uses the "system mail", use _is_ /usr/sbin/sendmail.
And finally, how could I test this after setting it up instead of
waiting for the scheduled time?
A 1 minute cron job?
* * * * * echo hello
Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx