[SOLVED] One entry in crontab gets 60 messages (one per second)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
One entry in crontab gets 60 messages (one per second)
This is something I've never seen. Cron did send email this morning for my crontab entry for today ... 60 of them, to be exact. One per second while still 0200.
Is this another quirk with the crond that Slackware uses?
Most likely it is not crond that is sending mails every second, crond can only run things once every minute. During the years, I have seen bugs causing crond to fork multiple crond processes. However, I do not think that you have 60 crond processes running. My guess is that you from cron have started something that is sending a lot o emails.
What does your entry in crontab look like that is causing all those mails?
This is something I've never seen. Cron did send email this morning for my crontab entry for today ... 60 of them, to be exact. One per second while still 0200.
Is this another quirk with the crond that Slackware uses?
Thanks
Hi, no offense, this less than obscure, not even sharing your /var/spool/cron/crontabs/* .
Cron works out of the box on Slackware.
It is likely - umask 0200 - still makes the cron tasks executable for the user involved.
Most likely it is not crond that is sending mails every second, crond can only run things once every minute. During the years, I have seen bugs causing crond to fork multiple crond processes. However, I do not think that you have 60 crond processes running. My guess is that you from cron have started something that is sending a lot o emails.
What does your entry in crontab look like that is causing all those mails?
regards Henrik
# Run calendar -a at 0200
* 2 * * * /usr/bin/calendar -a
#
Looks right to me, unless there's yet another typo somewhere (like the missing * before).
So, your original cron job were configured to run every minute betweeen 02:00 and 02:59. Once fixed to only run at 02:00, did that fix your problem? Did you really get one mail every second, or where you confused by the mails sent every minute during that hour?
So, your original cron job were configured to run every minute between 02:00 and 02:59. Once fixed to only run at 02:00, did that fix your problem? Did you really get one mail every second, or where you confused by the mails sent every minute during that hour?
regards Henrik
Apparently I was confused by the number sent during that hour. This was first thing in the morning, pre-caffiene (it was still "brewing" in my French Press (I've had too many automatic drip coffee makers die ... a French press doesn't die).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.