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

Re: [cobalt-users] Nightmare with the following:



Howard wrote:
> 
> SNIP <
> 
> #2) For some reason my cron.hourly logcheck is not working still. It
> works when I run the command for it manually from the telnet login.
> I have this in my logcheck file in my /etc/cron.hourly and
> /etc/cron.half-hourly:
> -rwx------   1 root     root           47 Jun 20 13:58 logcheck
> 
> #!/bin/sh
> /bin/sh /usr/local/etc/./logcheck.sh
> 
> This is my /var/log/cron log:
> root (06/22-22:34:00-1459) CMD (run-parts /etc/cron.half-hourly)
> root (06/22-22:40:00-1577) CMD (   /sbin/rmmod -as)
> root (06/22-22:45:00-1711) CMD (/usr/local/sbin/swatch
> >>/var/cobalt/adm.log 2>&1)
> root (06/22-22:48:00-1818) CMD (run-parts /etc/cron.quarter-hourly)
> root (06/22-22:50:00-1876) CMD (   /sbin/rmmod -as)
> 
> Thanks!

I can't help with #1 problem but but the second line of the logcheck
script should be /usr/local/etc/./logcheck.sh  (drop the /bin/sh at the
beginning of the line) At least that is the way it works on my system.

HTH,
Scott

--
      Scott V. Blomquist
   Director of Network Services
Inner Traditions International Rochester, VT
  802-767-3174(v) 802-767-3726(f)
    scott@xxxxxxxxxxxxxxxxxxx