[Bacula-users] Bacula script help - passing variable...

2010-04-19 Thread tqz
Hi and thanks for your response... drescherjm how would you get it to do that?? I am a complete beginner to this type of scripting!!! At the moment here is an example of what my files look like:- my bacula.sh file:- #! /bin/bash Vol=$(echo "st storage=DEV6-Changer" | bconsole | grep Volume:

Re: [Bacula-users] Bacula script help - passing variable...

2010-04-19 Thread John Drescher
On Mon, Apr 19, 2010 at 8:20 AM, tqz wrote: > > Hello all! :) > > I'm trying to write a bash script for bacula and need a bit of help! > > My first file contains a script that gets the volume name of a tape and then > runs the bconsole program that has a list of commands in a second file > input

[Bacula-users] Bacula script help - passing variable...

2010-04-19 Thread tqz
Hello all! :) I'm trying to write a bash script for bacula and need a bit of help! My first file contains a script that gets the volume name of a tape and then runs the bconsole program that has a list of commands in a second file inputted to it i.e. ./bconsole -c ./bconsole.conf http://p.sf.