# Get AFS tokens for the screen session.
# We are now in a new PAG (because of pagsh).
# If you want to get tokens for other cells, list them in ~/.xlog
-aklog
+aklog || echo "Failed to get new tokens"
# Use separate kerberos tickets for screen. Even if we accidentally
# (or intentionally) log out, screen and owl will still have tickets.
# Copy the tickets we obtained on login to the screen tickets.
KRB5CCNAME=`echo $KRB5CCNAME | sed 's/FILE://'`
-cp $KRB5CCNAME $NEWKRB5
+if [ "x$KRB5CCNAME" != "x" ]; then
+ cp $KRB5CCNAME $NEWKRB5
+else
+ echo "No tickets; not copying to new CC"
+fi
# Now actually use the new tickets.
KRB5CCNAME=FILE:$NEWKRB5; export KRB5CCNAME