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
[root@lainux ~]# 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
#! /bin/bash # update access statistics for the web site if [ -s /var/log/httpd/access_log ]; then exec /usr/bin/webalizer -Q fi
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.
I'm not sure what causes the problem... http://www.howtoforge.com/forums/showthread.php?t=3119&highlight=/etc/cron.daily/0logwatch http://www.howtoforge.com/forums/showthread.php?t=3937&highlight=/etc/cron.daily/0logwatch http://www.howtoforge.com/forums/showthread.php?t=2529&highlight=/etc/cron.daily/0logwatch