Re: Cron emails

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

 



5 */4 * * * root run-parts /etc/cron.quarterly | mailx -s "test"


??

hth,jackc...


On Fri, Nov 21, 2014 at 5:22 PM, Mike Chambers <mike@xxxxxxxxxxxxxx> wrote:
Hi all,

I have a couple of cron jobs setup in my /etc/cron.d/ dir and they seem
to be checked and run as suppose to, according to /var/log/cron.
Basically the 2 jobs point to a couple of dir's that run a few scripts
every so few hours and mirror a few things from Fedora, rpmfusion, etc.

But I would like to get the email results of those 2 jobs after they
run, whether they download anything or not, but right now I don't get
anything.

Below is a copy of one of the cron jobs, but they are all the same.

[root@scooby log]# more /etc/cron.d/0quarterly
# Run the quarterly jobs
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
5 */4 * * * root run-parts /etc/cron.quarterly

As can see above, mailto=root is set, and I do get root emails (I
tested) to the alias I have set it for, but not the cron jobs.

So how else can I get it to email me no matter what the result is?

--
Mike Chambers
Madisonville, KY

"Best little town on Earth!"

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[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