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

Re: cron problem



On Sun 17 May 2020 at 11:21:11 (-0600), ghe wrote:
> On 5/17/20 10:42 AM, ghe wrote:
> > Buster, Supermicro desktop
> > 
> > Cron jobs (some of them) don't show up in root's email.
> > 
> > I admin 2 domains -- one on Squeeze, one on Buster. My Squeeze
> > cron results show up fine; Buster's don't. I've reinstalled the
> > Buster jobs. I've copyNpasted them from the Squeeze crontab. Both
> > logwatch results show up (part of /etc/crop.daily). It seems that
> > that the jobs I enter manually don't show up. They didn't use to
> > do that.
> > 
> > 
> > Here's my crontab on Buster:
> > 
> > root@sbox:~# cat /var/spool/cron/crontabs/root
> > # DO NOT EDIT THIS FILE - edit the master and reinstall.
> > # (/tmp/crontab.93Jh1O/crontab installed on Sun May 17 10:11:58 2020)
> > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
> > 5 1 * * * /bin/cat /proc/mdstat
> > 10 1 * * * test -x /usr/sbin/apticron && /usr/sbin/apticron --cron
> > #apticron
> > 
> > (The date is a few minutes ago because I removed a dup of logwatch.)
> > 
> > 
> > And on Squeeze:
> > 
> > root@rrserv:~# cat /var/spool/cron/crontabs/root
> > # DO NOT EDIT THIS FILE - edit the master and reinstall.
> > # (/tmp/crontab.bgZABv/crontab installed on Wed May 13 12:48:16 2020)
> > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
> > 2 1 * * * /bin/cat /proc/mdstat
> > 
> > 
> > Here's what happens if I manually run one of them (Buster):
> > 
> > root@sbox:# /bin/cat /proc/mdstat
> > Personalities : [raid1] [linear] [multipath] [raid0] [raid6]
> > [raid5] [raid4] [raid10]
> > md0 : active raid1 sdc1[1] sda1[0]
> >        488253440 blocks super 1.2 [2/2] [UU]
> >        bitmap: 0/4 pages [0KB], 65536KB chunk
> > 
> > unused devices: <none>
> > 
> > 
> > I have a feeling that I've done something trivially wrong. But I
> > can't find it. Thoughts?

I always examine my cron with

    crontab -l

rather than just catting some random file.

Cheers,
David.


Reply to: