This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Initiating a remote X session
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Cc: bszk at wright dot aps dot uoguelph dot ca, bo at uoguelph dot ca
- Date: Wed, 21 Jan 2004 16:41:21 +0100 (MET)
- Subject: Re: Initiating a remote X session
- References: <400E9ABA.6070103@uoguelph.ca>
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 21 Jan 2004, Steve Howie wrote:
> Howdy,
>
> We've just had a look at cygwin-xfree and are very impressed. However,
> we'd like to bundle it for our users so that we have a some pre-defined
> 'sessions' available e.g. connect to a Unix host, run SAS then have the
> output sent to an cygwin-xfree server. Unix commands are not the forte
> of most of our users.
>
> This is fine with a static IP address - we would launch a program which
> does something like:
>
> rexec <host> -l <username> "setenv DISPLAY <ipaddress>; /opt/SAS82/sas "
> So ideally we would like something similar to this in cygwin-xfree :
>
> rexec <host> -l <username> "setenv DISPLAY $MYIP:0; /opt/SAS82/sas"
First try:
MYIP=`hostname -i` rexec <host> -l <username> "setenv DISPLAY $MYIP:0; /opt/SAS82/sas"
but hostname -i does not work on cygwin. But maybe the name of the host is
sufficient
MYIP=`hostname` rexec <host> -l <username> "setenv DISPLAY $MYIP:0; /opt/SAS82/sas"
Or even better, Use ssh:
DISPLAY=localhost:0 ssh -X <host> -l <username> "/opt/SAS82/sas"
ssh will take care of setting the remote DISPLAY and all transferred
data is sent via the ssh tunnel.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723