[ale] Handy little script others may have a use for too...

da Black Baron dbaron13 at atl.bellsouth.net
Mon Mar 24 16:40:51 EST 2003



## Add this to your .profile, and you'll not have to set your display
## for remote X-apps when you ssh into your box!


display=$(env | grep SSH_CLIENT)

display1=${display##SSH_CLIENT=}

display2=${display1%%22}

display3=${display2%%??????}

DISPLAY=$display3':0' export DISPLAY

--------------<snip here>----------------------------

-- 
-------------------------------------------------------------------------
-------------------------------------------------------------------------
"Here's my family tree.  As far as I can tell, my relatives were 
carnival folk who were touring this place called Hiroshima in 
the summer of 1945.  Because they lost most of their hair, they 
mostly married each other.  And here I am"

-------------------------------------------------------------------------
-------------------------------------------------------------------------      
                                                        (,,oBo,,)       
 Wylde Bill                                               ||||          
__________________________________________           http://lyst.org    
                
http://mrpooter.sytes.net                              
wyldechylde at geocities.com
-------------------------------------------------------------------------
-------------------------------------------------------------------------  

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list