Veritas-bu

[Veritas-bu] export DISPLAY, automatically

2004-03-19 17:34:02
Subject: [Veritas-bu] export DISPLAY, automatically
From: jason.helfman AT ticketmaster DOT com (Jason Helfman)
Date: Fri, 19 Mar 2004 14:34:02 -0800
Hey ya'all,

Not sure how you guys export your display, but I just scripting a 
quickie that works great for automatically getting the job done

export PT=`env |grep SSH_TTY |awk -F / '{print $3 "/" $4}'`
export DISPLAY=`who |grep $PT |awk '{print $6}' |sed s/\(// |sed s/\)//`:0.

Just add this to your .bashrc file on the server you want to export 
from, and yer good to go.... jnbSA&

I mostly use command line, but use the gui once in awhile.

-- 
Jason G Helfman, Ticketmaster
8800 W. Sunset Blvd.
West Hollywood, CA 90069
213/739-5174 Direct
310/345-1554 Cell
310/360-3300 Main
jason.helfman AT ticketmaster DOT com
GnuPG Fingerprint: A349 3CAA 5085 DC6E C485  7356 13C3 5772 F865 C926

<Prev in Thread] Current Thread [Next in Thread>