Secondary VNC Session & LSF interactive Jobs

Issue: If user has more than one VNC session on his/her workstation, LSF interactive jobs doesn’t work other than primary VNC session.

Reason for this is, LSF does not forward xauth cookies other than primary VNC sessions.

Workaround: add the below lines in affected  user’s .cshrc/.bashrc file.

#Check whether XAUTHORITY is defined
if ( “$?XAUTHORITY” ) then

if ( $XAUTHORITY != ~/.Xauthority ) then
xauth -f ~/.Xauthority merge $XAUTHORITY
echo “merged xauthority cookies”
setenv XAUTHORITY ~/.Xauthority
echo “loaded xauthority cookies”


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s