[Gllug] export DISPLAY in .bashrc

Tethys tet at createservices.com
Thu Jun 17 13:42:19 UTC 2004


SteveC writes:

>export DISPLAY = cut -d ' ' -f 1 < echo $SSH_CLIENT
>export DISPLAY=$DISPLAY:0
>
>or something should work?

Errr, no. Shell redirects don't work like that. You're asking to feed
cut the contents of a file called "echo". Try:

	export DISPLAY="${SSH_CLIENT%% *}:0"

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list