I'll send you what I've done so far tomorrow when I get to work. Basically what I need is a script that will tell the robot to unload the running tape back to it's home slot, and load the next in the list into the drive and so on, and make sure it doesn't load the same tape more than once during the entire backup. Also after the backup is done I need to remove all the tapes that that particular backup used off the list so the backup that's next in line doesn't overwrite any of them. Since I can only tell the robot to load a tape from a slot, I'd like to be able to do something like: tapeutil -f /dev/smc0 load $slot_nr(A00401)
Come to think of it maybe an ordinary hash would do, but I still don't know how to load that inventory, which has multiple lines per record into a hash, and filter out everything except Slot and Tag.