Hi Barry,
 
in the mean time have a look at my little script. I called it run.sh and call it in a RunBeforeJob directive. The names of the other scripts are its parameters.
Maybe it's useful:
 
#!/bin/sh
 
SCRIPT_PATH=/usr/local/bacula/scripts:/usr/local/bacula/agy-scripts
 
PATH=$SCRIPT_PATH:$PATH
 
for i in $@
do
  echo "running $i"
  $i
  RC=$?
  if [ $RC -ne 0 ]
  then
    echo "error $RC running $i"
    exit $RC
  fi
done
regards,
Torsten

--

Torsten Uhlmann
AGYNAMIX(R). Sheltering Talent.

Phone:   +49 3721 273445
Fax:     +49 3721 273446
Mobile:  +49 177 5261680
Web:     http://www.agynamix.de
 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Benowitz
Sent: Wednesday, March 22, 2006 5:13 PM
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] RunBeforeJob Directive

Hi all,

 

Can you provide more than one “RunBeforeJob” directive to a single Job? This would be very handy to avoid unnecessarily complicated scripts.

 

Thanks in advance.

 

 

 

Barry Benowitz

Raritan Computer

(732) 764 8886 x1362

[EMAIL PROTECTED]

 

Reply via email to