#!/bin/csh -x
#----------------------------------------------------------------------
#
#       holdup.com
#
#       Delays pipeline processing stage by using sleep().
#
#--------------------------------------------------------------------
#                          REVISION HISTORY
#--------------------------------------------------------------------
#  MOD             PR
# LEVEL   DATE   NUMBER  User  Description
# ----- -------- ------  ------ -------------------------------------
#  001  08/05/97 33432   MSwam  created
#  002  08/29/97 35137   Rose   removed .cshrc loggin
#  003  02/20/98 35847   WMiller Set redirections for noclobber
#
#----------------------------------------------------------------------
#
echo " "
echo "`date`"
echo "---------------- Starting HOLDUP ----------------------------" >>! $TRLDIR/$OSF_DATASET.trx
echo "`date`" >>! $TRLDIR/$OSF_DATASET.trx

# sleep for a configured number of seconds
sleep $PAUSE_INTERVAL
set savestat = $status
if ( $savestat == 1 ) then
    echo "ERROR: Failed to pause during $OSF_DATASET." >>! $TRLDIR/$OSF_DATASET.trx
else
    echo "SUCCESS: Begin next step for $OSF_DATASET. " >>! $TRLDIR/$OSF_DATASET.trx
endif
echo "---------------- Ending HOLDUP ------------------------------" >>! $TRLDIR/$OSF_DATASET.trx
echo " "
exit $savestat
