On Sat, Mar 02, 2002 at 01:47:42PM -0800, Ian Eure wrote:
> Hi there. I'm getting some strange errors from chg-zd-mtx, which is causing 
> amdump to fail.
> 
> -- snip --
> # su backup -c /usr/sbin/amtape Daily slot 2
> amtape: could not rewind [: 2: unary operator expected: no tape onlineamtape: 
> changed to slot /usr/lib/amanda/chg-zd-mtx: on [: 2: unary operator expected
> #
> -- snip --
> 
> I'm using Debian "woody", Amanda 2.4.2p2, mtx 1.2.15, and vanilla Linux 
> 2.4.18.
> 
> Has anyone seen this before? I've tried to debug the script, since it seems 
> like it's a simple problem with using un-quoted variables in if statements, 
> but I can't seem to figure out how to invoke chg-zd-mtx by hand.

That's documented in docs/TAPE.CHANGERS, you must cd to your config
directory.

We have a rewritten chg-zd-mtx script in CVS, you could give it a try.

Jean-Louis
-- 
Jean-Louis Martineau             email: [EMAIL PROTECTED] 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7        Fax: (514) 343-5834

Reply via email to