On 5/6/20 11:06 PM, Gordon Messmer wrote:
On 5/6/20 3:00 PM, Robert Moskowitz wrote:
Do I need something like postfix with a minimal installation to get
the output from my crontab?
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. I looked at man crontab.5 and did not see a way to specify
the mail command to run for the cron output.
And finally, how could I test this after setting it up instead of
waiting for the scheduled time?
thanks
_______________________________________________
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