[Logcheck-devel] Bug#253998: logcheck: line 551: unary operator expected

root root at cante.net
Sat Jun 12 12:36:01 UTC 2004


Package: logcheck
Version: 1.2.22a
Severity: important

The following message is displayed in a cron mail. Perhaps the
-lt operator could be replaced or the test be written differently,
so that it would be more robust. It looks like the [ ] is empty
and -lt has no values to compare => that's the error.

Jari


tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission denied
/usr/sbin/logcheck: line 551: [: 11996: unary operator expected
/usr/sbin/logcheck: line 84: kill: (16747) - No such process

The Lines from the program are like this. 

551:	    if [ $(wc -c < $file) -lt $(tail -n 1  $offsetfile) ]; then
552:		if [ -e $file.0 ]; then


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.26.20040601
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages logcheck depends on:
ii  adduser          3.56                    Add and remove users and groups
ii  cron             3.0pl1-83               management of regular background p
ii  debconf [debconf 1.4.28                  Debian configuration management sy
ii  debianutils      2.8.2                   Miscellaneous utilities specific t
ii  exim4            4.34-2                  An MTA (Mail Transport Agent)
ii  exim4-daemon-hea 4.34-2                  Exim (v4) with extended features, 
ii  lockfile-progs   0.1.10                  Programs for locking and unlocking
ii  logcheck-databas 1.2.22a                 A database of system log rules for
ii  logtail          1.2.22a                 Print log file lines that have not
ii  mailx            1:8.1.2-0.20040524cvs-1 A simple mail user agent
ii  perl             5.8.4-2                 Larry Wall's Practical Extraction 
ii  sysklogd [system 1.4.1-14                System Logging Daemon

-- debconf information:
* logcheck/noroot:
  logcheck/changes:
* logcheck/install-note:





More information about the Logcheck-devel mailing list