halo, > Ah, ok. > I understand. > The problem I see is that the script would need some > knowledge about > what Bacula actually wants. Hmm. actually it does know what to look for, the script gets called with %o %a %S args. from here http://bacula.org/rel-manual/Autochanger_Support.html#SECTION000296000000000000000 you find that: %o = command (loaded, load, or unload) %a = archive device name %S = Slot base 1 this clears the mystery for your last suggestion.
> Ok, I could imagine the following scenario (take > this as a sketch only...) > > You take a script like the one you have. Now, this > script needs to know > which tape Bacula wants. > If I'm not mistaken the %v variable can be used to > supply that name to > the script. > > In the script, wait until a tape is inserted. Rewind > and use btape (or > dd) to dump the label. Compare the volume name. > If the volume name does not match, eject tape and > start again. good idea. but still i wonder why the directives above mentionned don't suffice... > Doesn't sound too hard to create, I think. no. > > ok. i haven't implemented client shutdown yet. > > Hey, I'm talking about server shutdown here! > ;-) my server does also file serving, so no can do! :) still it seems to be a good way of keeping your server/tapes/tape\ drives alive for a long time. > Should be on sourceforge... let's see: > http://sourceforge.net/project/showfiles.php?group_id=50727&package_id=110235 > > should have the files you probably want. actually, i need 1.36.2 lose installer, which isn't provided. still better than 1.38 ! > Like: > Capture stdin to temp file. > Get subject from command line. > cat temp_file | bsmtp -s subject -h mailhost -f > sender_name recipient > cat temp_file | bsmtp -s subject -h other_mailhost > -f sender_name\ > other_recipient indeed, the way to go. thanks again, mlistus __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- 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