Fedora 32 no MTA, CRON output and procmail

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

 



I have been digging for how to do today and found something interesting:

Back in Fedora 20, there was no MTA!

https://www.mhonarc.org/archive/html/procmail/2014-01/msg00000.html

I worked on cron outbut via procmail way back then and used:

CRONDARGS=-m "/usr/bin/procmail -f cron"

So I just tried this and I have one problem with it.  No DATE header.

So my new script is better, so far, than procmail.  That is until someone tells me how to get procmail to add a DATE header.  Or maybe better for CRON to put it in, and the DATE/TIME it started the task, not when PROCMAIL would process the output.

thanks

BTW, Here is my current mycron script:

local]# cat mycron
#!/bin/sh

exec 3>> /var/spool/mail/$USER
currentDate=$(date +'%a %b %d %T %Y')
echo "From cron@localhost  $currentDate" >&3
currentDate2=$(date +'%a, %e %b %Y %T %z (%Z)')
echo "Date: $currentDate2" >&3
(cat) >&3
echo "" >&3

Thanks for all the help getting to this point.


_______________________________________________
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