I used to have this in my .cshrc
set DISP = `who am i | sed -e "s/(//" -e "s/)//" | awk '{printf "%s",$6}'`
setenv DISPLAY {$DISP}:0.0

This works as long as I am on X server 0
So my local machine is alpha and I login to beta, I would have a
DISPLAY set to alpha:0
The problem is what if my local machine X was started with startx --
:1 and not startx
Then also it would set it to alpha:0, though the correct usage would be alpha:1
Is there a way of automatically doing that?

regards
Tanveer

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to