From a34c8e0836fa99a68509721909a4b485b8f301c5 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Thu, 21 Apr 2011 19:33:59 -0400 Subject: [PATCH] pag-screen: report more errors --- pag-screen | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pag-screen b/pag-screen index 2fc538d..c0c46e8 100755 --- a/pag-screen +++ b/pag-screen @@ -15,7 +15,7 @@ fi # 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. @@ -23,7 +23,11 @@ NEWKRB5=/tmp/krb5cc_${USER}_screen # 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 -- 2.34.1