pearlofperls
Technical User
2 java jobs being called in ksh script and error trapping wont work when one or both fails
Couple additonal points:
- this use to work on HP but doesnt after we migrated to solaris
- this type of error trapping works in solaris for other scripts calling one job
- we cannot make the jobs run serially, they need to run concurrently due to time restraints
e.g.
nohup $LIVE_DIR/ANVIL1 &
$LIVE_DIR/ANVIL2
wait
_ret_code=$?
if [ $_ret_code -ne 0 ]
then
echo "ANVIL Script failed."
exit $FAIL
fi
Couple additonal points:
- this use to work on HP but doesnt after we migrated to solaris
- this type of error trapping works in solaris for other scripts calling one job
- we cannot make the jobs run serially, they need to run concurrently due to time restraints
e.g.
nohup $LIVE_DIR/ANVIL1 &
$LIVE_DIR/ANVIL2
wait
_ret_code=$?
if [ $_ret_code -ne 0 ]
then
echo "ANVIL Script failed."
exit $FAIL
fi