Cron error ?

Discussion in 'General' started by Salvis, Aug 19, 2006.

  1. Salvis

    Salvis New Member

    Every morning i reciving e-mail from my server:
    Code:
     /etc/cron.daily/0logwatch:
    
    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 798.
    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 798.
    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 798.
    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 798.
    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 798.
    How to fix this error?

    OS: Fedora Core 5 64bit
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -l /etc/cron.daily
    ?
     
  3. Salvis

    Salvis New Member

    [[email protected] ~]# ls -l /etc/cron.daily
    total 72
    -rwxr-xr-x 1 root root 133 Feb 12 2006 00webalizer
    -rwxr-xr-x 1 root root 276 Apr 14 04:14 0anacron
    lrwxrwxrwx 1 root root 39 May 19 14:34 0logwatch -> /usr/share/logwatch/scripts/logwatch.pl
    -rwxr-xr-x 1 root root 1042 Feb 11 2006 certwatch
    -rwxr-xr-x 1 root root 118 Aug 17 15:27 cups
    -rwxr-xr-x 1 root root 180 Feb 12 2006 logrotate
    -rwxr-xr-x 1 root root 418 Mar 24 10:55 makewhatis.cron
    -rwxr-xr-x 1 root root 137 Mar 18 05:37 mlocate.cron
    -rwxr-xr-x 1 root root 2133 Nov 23 2004 prelink
    -rwxr-xr-x 1 root root 114 Feb 12 2006 rpm
    -rwxr-xr-x 1 root root 100 Jun 25 08:09 tetex.cron
    -rwxr-xr-x 1 root root 290 Feb 12 2006 tmpwatch
    -rwxr-xr-x 1 root root 158 Apr 26 22:29 yum.cron
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Ok, and what's in /etc/cron.daily/00webalizer?
     
  5. Salvis

    Salvis New Member

    #! /bin/bash
    # update access statistics for the web site

    if [ -s /var/log/httpd/access_log ]; then
    exec /usr/bin/webalizer -Q
    fi
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Change it to

    Code:
    #! /bin/bash
    # update access statistics for the web site
    [B][COLOR="Red"]exit 0[/COLOR][/B]
    
    if [ -s /var/log/httpd/access_log ]; then
    exec /usr/bin/webalizer -Q
    fi
    That cron job is useless as ISPConfig comes with its own webalizer cron job.
     
  7. Salvis

    Salvis New Member

    Done, but i still reciving e-mail from Cron Deamon with text:
     
  8. falko

    falko Super Moderator ISPConfig Developer

Share This Page