On Mon, 2006-02-13 at 23:57 +0000, Chris Dennis wrote:
> Thomas Glatthor wrote:
> > Hi Chris,
> > 
> > you can use a cron-job, which mails the output of this script
> > 
> > 
> >>#!bin/bash
> >>./bconsole -c ./bconsole.conf <<END_OF_DATA
> >>status dir
> >>quit
> >>END_OF_DATA
> 
> OK, thanks for that.
> 

echo -n "status dir" | bconsole -s

...also works.

# echo -n "status dir" | bconsole -s 2>&1|egrep "^Incremental|^Full"|awk
'{print $1" "$4" "$5}'


Incremental 13-Feb-06 22:00
Incremental 13-Feb-06 22:00


further pipe to | senmdmail [EMAIL PROTECTED]

~lava

> Has anyone written a script to parse the output of 'status dir' to
> extract the (likely) next volume?  If not, I'll have a go myself.
> 
> Next question:  I can't find a way to ask "Which tape is currently in
> the drive?"  Is that possible?  If it is, I could compare the answer
> with the output from 'status dir' and send another urgent email if they
> don't match.
> 
> cheers
> 
> Chris
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to