#!/bin/sh

PATH=/bin/athena:/usr/athena/bin:/mit/gnu/bin:/mit/afsuser/bin:${PATH}; export PATH
attach -h -n gnu afsuser

klist -s
if [ $? -ne 0 ] ; then
  echo "principal/instance: "\\c
  read principal
  kinit -l 21:00:00 $principal ||exit
  fi


SCREENDIR=/var/tmp/backup-screen; export SCREENDIR
test -d $SCREENDIR || mkdir $SCREENDIR
chmod 700 $SCREENDIR

exec pagsh -c 'aklog -cell sipb.mit.edu ; exec screen -c /afs/sipb.mit.edu/project/newdump/scripts/screenrc'
