Hi,

On 1/4/2007 5:09 PM, Junior Cunha wrote:
> Hello all,
> 
>    I'm writing a script that will unmount and eject the tape when a new
> tape is required (operator command), and will *WAIT* a new tape. If a
> new tape was detected, the script will rewind the tape and mount the device.

I assume that you will use that to handle a single tape drive and keep 
the operator from bconsole.

>    My question is: Exist some command or procedure to check if the drive
> is empty or have a new tape?

So you want this from the unix shell layer, not from bconsole, right?

mt and perhaps tapeinfo are what you can use then. If you need Baculas 
volume label, btape can be used.

A look into the mtx-changer script, function wait_for_drive(), gives you 
a complete implementation of waiting for a tape loaded in a drive. Not 
necessarily portable, though.

Arno

>    Tks.
> 
>    Jr.
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to