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 tqzeli...@yahoo.co.uk via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Download Intel&#174; 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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to