Need to know abt script that invokes batches and get d log files if batches failed

hi ,
I need to know commands to be used in the script to invoke batches in order from other scripts and then run those batches,and how to take those logs of those batches which fails........If anyone give me a better idea to complete this entire task in a single script...

er, batch

or at

its actually a batch to create an announcements..And if any of the batches fails it should stop the process to proceed further

put in a script and batch this as one,

#!/bin/ksh -e
script1
script2
script3

or
set -o errexit

will fail a script on an error

thanx ...Bt hw do u get the log files if those batches fails

#!/bin/ksh -e
script1 > script1.log 2>&1
script2 > script2.log 2>&1
script3 > script3.log 2>&1

or

#!/bin/ksh -e
script1  > script.log 2>&1
script2 >> script.log 2>&1
script3 >> script.log 2>&1