Erik van der Meulen wrote:
> 
> Funny, if I do something like:
> 
>   amdump default & mt -f /dev/nst0 eject
> 
> The tape ejects first and Amanda gives an error 'no tape found'.

It should be "&&", instead of "&" ;-)

"&" means "do it in the background and continue with next command
immediately", which gives you the error you mentioned.

"&&" means "do the next command if and only if the previous one exited
withoud errors" - and that's what you want :-)

-- 
Regards

Chris Karakas
Don´t waste your cpu time - crack rc5: http://www.distributed.net

Reply via email to