>Now I get the following amcheck error....
>...
>amcheck-server: could not get changer info: [: integer expression expected
>before -eq
A fix for this was reported by Tomas Revesz ([EMAIL PROTECTED]) last
September:
i just fixed this last week. the line from amanda's default chg-zd-mtx
script that parses the mtx status command is busted for this version of
mtx. it expects a . after the : and doesn't include the 0 after Data
Transfer Element. here is the line as i use it and it works great...
readstatus() {
used=`$MTX status |
sed -n 's/Data Transfer Element 0:Empty/-1/p;s/Data Transfer Element 0:Full
(Storage Element \(.\) Loaded)/\1/p'`
if [ "$used" -eq -1 ]; then
used=`cat $slotfile`
fake=1
fi
}
I haven't done anything with it because I don't know anything about
mtx and I think others (some who've just posted in the last day or two)
are reworking it. But maybe this will at least get you going.
>Joe
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]