<---- template headericclude ----->
Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    kamranshah Guest

    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683

    I am experiencing this issue constantly with my Fedora Core 4 installation. I have tried to install/ reinstall this computer many times from scratch but this error is not getting resolved and I cannot get to the root.

    /etc/cron.daily/0logwatch:
    Use of uninitialized value in numeric le (<=) at /etc/cron.daily/0logwatch line 683.

    I am usually okay for one week and then cron starts generating this error on daily basis. I past I was running yum nightly updates but this time I updated my system once manually and not enabled automatic updates.

    In my previous installation I was also experiencing some issues with ISPConfig application I was using and the feedback I recevied was that it is some sort of segmentation failure which are usually caused by memory or disk errors.

    I have ran memtest86 and microsoft's memory test applications thoroughly and did not find any problems with memory. I have successfully formatted hard disks with DOS and linux installation without any errors, also changed partition sizes but nothing has made any difference.

    This time I kept log of all emails from system and logs and cannot find any obvious change on the system at all which could have caused this error.

    I have tried few hosting control panels but ISPConfig is perfect for my needs, other are too complicated and compliant with other distributions like Debian but I like Fedora more and would like to keep myself on the same.

    Can someone please put me in right direction how to figure out what is going on?

  2. #2
    Join Date
    Aug 2004
    Posts
    4,174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you looked at line 683 in the script that the error refers to?
    "Never let the task you are trying to accomplish distract you from the study of computers."

  3. #3
    kamranshah Guest

    Debugging script found a broken symbolic link

    I added print "$Archive \n"; to the 0logwatch for debugging what was happening.

    my @FileStat = stat($Archive);
    print "$Archive \n"; # Added by me to debug problem
    if ($CheckTime <= ($FileStat[9])) {

    Running this script manually now brought up following and when I looked for file with problem it was actually a broken symbolic link causing this error.

    [root@portal cron.daily]# ./0logwatch
    /var/log/maillog.1
    /var/log/secure.1
    /var/log/messages.1
    /dev/null
    /var/log/cron.1
    /var/log/httpd/ssl_access_log.1
    /var/log/httpd/ispconfig_access_log.1
    Use of uninitialized value in numeric le (<=) at ./0logwatch line 684.
    /var/log/httpd/access_log.1
    /var/log/messages.1
    /var/log/netgear.log.1
    /var/log/up2date.1

    Now when i list directory for the file with error
    ll /var/log/httpd/ispconfig_access_log.1
    lrwxrwxrwx 1 root root 46 Mar 19 03:25 /var/log/httpd/ispconfig_access_log.1 -> /var/log/httpd/ispconfig_access_log_2006_03_19

    while ll /var/log/httpd/ispconfig_access_log_2006_03_19 returns
    ls: /var/log/httpd/ispconfig_access_log_2006_03_19: No such file or directory

    Thanks for pointing me to debug this script, although I am not perl programmer but still found the problem.

Similar Threads

  1. logwatch and cron.daily/
    By ms1234 in forum Using Fedora
    Replies: 0
    Last Post: 12th March 2007, 01:03 PM
  2. /etc/cron.daily/000-delay.cron
    By kwhiskers in forum Using Fedora
    Replies: 0
    Last Post: 27th January 2007, 08:53 PM
  3. daily cron job
    By TranceDude in forum Using Fedora
    Replies: 6
    Last Post: 11th September 2005, 12:20 PM
  4. daily cron jo
    By TranceDude in forum Using Fedora
    Replies: 0
    Last Post: 3rd September 2005, 06:56 PM
  5. Replies: 0
    Last Post: 20th April 2005, 08:51 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]