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

RE: [cobalt-users] chkrootkit v0.34



Michael Scumacher (really?!?!) wrote:
> > has anyone installed the latest version of chkrootkit? i am getting
> > the following error when it runs:
> > 
> > integer expression expected before -gt

And Curtis wrote:
> I get the same error as well. On a box that has never been on the net.

Regardless of whether the machine has been on the net or not, this is a
shell script error. It means that some test has run with the left-hand-side
of the logic effectively empty. This is often when variables are used with
out being encased in "quotes".

Check out the following lines of the chkrootkit script:

181:  ${V} -gt 43 \) \) -a "${ROOTDIR}" = "/" ]; then

758:  if [ ${ret} -gt 0 ]; then

1899: if [ $# -gt 0 ]

If your shell barfs with that error, consider putting the term *before* the
-gt into "double-quotes". It's that simple. Incidentally, I get no error
here with or without the  quotes ;-)

Graeme
-- 
Graeme Fowler
System Administrator
Host Europe Group PLC