#!/bin/csh -f
#
# 	%W% %E%
#

set host = `uname -n`
set curf = curf_${host}
set rendir = ${GIG_D_ROOT}/projects/renmanadm/${curf}

# echo postponed command : $argv >> ${rendir}/gigrs_logfile

touch ${rendir}/postpoflag_1
echo 2 > ${rendir}/postpoturn
set turn = `cat ${rendir}/postpoturn`
while ( ( -e ${rendir}/postpoflag_2 ) && ( $turn == '2' ) )
  set turn = `cat ${rendir}/postpoturn`
end

echo $argv >> ${rendir}/postponed_coms

/bin/rm -f ${rendir}/postpoflag_1
