[Veritas-bu] export DISPLAY, automatically
2004-03-19 17:34:02
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>
|
- [Veritas-bu] export DISPLAY, automatically,
Jason Helfman <=
- [Veritas-bu] export DISPLAY, automatically, Biller, Tim
- [Veritas-bu] export DISPLAY, automatically, Coco, Samuel (Cont, ARL/CISD)
- [Veritas-bu] export DISPLAY, automatically, Stump, Robert (Contractor) (DRMS)
- [Veritas-bu] export DISPLAY, automatically, <dave.markham AT icl DOT net (Dave Markham)
- [Veritas-bu] export DISPLAY, automatically, Stump, Robert (Contractor) (DRMS)
- [Veritas-bu] export DISPLAY, automatically, Brzozowski, Dwayne
|
|
|