#!/bin/sh

test ${HOSTTYPE=`/bin/athena/machtype`}

if [ ! -r "/mit/6.270" ]; then
  attach 6.270
fi
if [ ! -r "/mit/esg/pers/warpdrive" ]; then
  attach esg
fi
cd /mit/esg/pers/warpdrive

# date and time in "tlyu format"
export TDATE; TDATE=`date +%y%m%d%H%M%S`;

if [ -r "core" ]; then mv core log/core.something.else; fi

xterm -geometry 80x40 -l -lf log/log.ic.$TDATE -bg "#FEE" -name Special -e "/mit/6.270/${HOSTTYPE}bin/ic" $@

if [ -r "core" ]; then mv core log/core.ic.$TDATE; else rm log/log.ic.$TDATE; fi
