[Bacula-users] Bacula script help - passing variable...
2010-04-19 11:27:16
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: | cut -d':' -f2)
echo $Vol
/etc/bacula/bconsole -c bin/bconsole.conf </bin/baculacommands.sh
exit 0
For my baculacommands.sh file i have something like:-
mount
purge
3
8
I just want to add the $Vol name that I have found from my first file to the
bottom of my second file - but am clueless as to how to pass the variable to
this file...
Hope this is clearer...
Thanks for any help I recieve in advance! :)
+----------------------------------------------------------------------
|This was sent by tqzelijah AT yahoo.co DOT uk via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|