I just found a code bug in pnethood-0.6.5. The offending code at line 19 is:
Code: Select all
[ -e "$/tmp/pnethood/log" -a $(du /tmp/pnethood/log | sed 's/\([0-9]*\).*/\1/') -gt 100 ] && : > ${TMP}log #clear log at 100K
A functional code without errors is:
Code: Select all
if [ -e "/tmp/pnethood/log" ] && [ $(du /tmp/pnethood/log | sed 's/\([0-9]*\).*/\1/') -gt 100 ]; then
: > ${TMP}log #clear log at 100K
fi
Others implementations for this solution can be applied, but this it the first I implemented (and it actually works as desired)
HairyWill, I Hope to see a new pnethood version soon, there are many users that stills like it.
Greetings,
clarf