ClientRunBeforeJob = "/bin/echo ClientRunBeforeJob"
Run After Job = "/bin/echo RunAfterJob"
ClientRunAfterJob = "/bin/echo ClientRunAfterJob"
+ RunScript {
+ Command = "/bin/echo ClientRunBefore1"
+ Command = "/bin/echo ClientRunBefore2"
+ Command = "/bin/echo ClientRunBefore3"
+ Command = "/bin/echo ClientRunBefore4"
+ RunsWhen = Before
+ }
}
Job {
}
RunScript {
Command = "/bin/false RUN_FD_FAILED3"
+ Command = "/bin/false RUN_FD_FAILED4"
failjobonerror = yes
RunsWhen = Before
}
Console = "purge volume=TestVolume001 yes"
Console = "st dir"
RunsWhen = Before
+ failjobonerror = no
runsonclient = no
}
}
c=$?
grep 'shell command: run AfterJob "/bin/echo RunAfterJob' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null
d=$?
-if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 ]
+grep 'ClientRunBefore1' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null && \
+grep 'ClientRunBefore2' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null && \
+grep 'ClientRunBefore3' ${cwd}/tmp/RUN_ALL_OK.log >/dev/null
+e=$?
+
+if [ $a = 0 -a $b = 0 -a $c = 0 -a $d = 0 -a $e = 0 ]
then
[ "$debug" = 1 ] && echo RUN_ALL_OK ok
else
d=$?
grep '*** Backup Error ***' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null
e=$?
-if [ $a = 0 -a $b != 0 -a $c = 0 -a $d = 0 -a $e = 0 ]
+grep 'RUN_FD_FAILED4' ${cwd}/tmp/RUN_FD_FAILED2.log >/dev/null
+f=$?
+if [ $a = 0 -a $b != 0 -a $c = 0 -a $d = 0 -a $e = 0 -a $f != 0 ]
then
[ "$debug" = 1 ] && echo RUN_FD_FAILED ok
else