HI Catkin thanks for your response but I am so confused!
Here is an example of my files:-
so my bacula.sh file
Vol=$(echo "st storage=DEV6-Changer" | bconsole | grep Volume: | cut -d':' -f2)
/etc/bacula/bconsole -c bin/bconsole.conf </bin/baculacommands.sh
For my baculacommands.sh file i have something like:-
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...