Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Tib on December 29, 2004, 02:56:24 PM

Title: Translation Please
Post by: Tib on December 29, 2004, 02:56:24 PM
Hello,

Could someone tell me what this meens

Use of uninitialized value in numeric gt (>) at /usr/local/bin/durep line 502.
Use of uninitialized value in addition (+) at /usr/local/bin/durep line 506.
Use of uninitialized value in numeric gt (>) at /usr/local/bin/durep line 502.
Use of uninitialized value in addition (+) at /usr/local/bin/durep line 506.

I get it every day in my cron jobs.

Tib
Title: Translation Please
Post by: Damian on December 31, 2004, 11:51:44 AM
Hi Tib,

It seems you have durep installed for calculating where your disk space has gone but the script to updtae it (via cron) contains errors. Errors from cron scripts are emailed to root by default.

Try to work out what is missing in the script by looking at  /usr/local/bin/durep with vi and checking the line numbers given in the error report.

Alternatively, try reinstalling durep to clear the errors (rpm -Uvh durep.whatever.rpm).

Damian
Title: Translation Please
Post by: Tib on December 31, 2004, 04:20:34 PM
Thanks Damian,

I'll give them a go.

Tib
Title: Translation Please
Post by: CharlieBrady on December 31, 2004, 05:44:48 PM
Quote from: "Damian"

Alternatively, try reinstalling durep to clear the errors (rpm -Uvh durep.whatever.rpm).


That's the Mircto$haft approach. Almost certainly not necessary.

Tib can verify that the durep script hasn't been modified since it was installed by doing:

rpm -Vf /usr/local/bin/durep

If the file hasn't changed (rpm will report '5' if it has, for md5 mismatch), then there's no point in reinstalling it.
Title: Translation Please
Post by: Damian on December 31, 2004, 06:27:15 PM
Hi Charlie,

Never been accused of using a MS approach before. Quite novel. 8-)

Damian