Re: user crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux