From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22188 invoked by alias); 21 Jan 2004 16:25:42 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 22178 invoked from network); 21 Jan 2004 16:25:40 -0000 Received: from unknown (HELO ns.itms.com) (167.206.84.6) by sources.redhat.com with SMTP; 21 Jan 2004 16:25:40 -0000 Received: from andrew (abraverman.itms.com [167.206.84.30]) by ns.itms.com (8.12.3/8.12.9) with SMTP id i0LGPdrx011658; Wed, 21 Jan 2004 11:25:40 -0500 From: "Andrew Braverman" To: Cc: , Subject: RE: Initiating a remote X session Date: Wed, 21 Jan 2004 16:25:00 -0000 Message-ID: <000f01c3e03b$34a18a00$1e54cea7@andrew> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: X-SW-Source: 2004-01/txt/msg00444.txt.bz2 List-Id: I would also suggest ssh tunnels for what you are trying to do. That is what I do myself. If you really do not want to do that, a replacement for MYIP=`hostname -i` rexec -l "setenv DISPLAY $MYIP:0; /opt/SAS82/sas" might be MYIP=`ipconfig | grep "IP Address" | awk '{print $NF}'` rexec -l "setenv DISPLAY $MYIP:0; /opt/SAS82/sas" This assumes that there is only one network interface on the machine and the machine has all the requisite programs installed. I know that the Windows 9x versions had a program called winipcfg, which could not be used this way. I am not sure if they had ipconfig in those versions and if not, when it started. Andy > -----Original Message----- > From: cygwin-xfree-owner@cygwin.com > [mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Alexander Gottwald > Sent: Wednesday, January 21, 2004 10:41 AM > To: cygwin-xfree@cygwin.com > Cc: bszk@wright.aps.uoguelph.ca; bo@uoguelph.ca > Subject: Re: Initiating a remote X session > > > 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 -l "setenv DISPLAY ; > /opt/SAS82/sas " > > > So ideally we would like something similar to this in cygwin-xfree : > > > > rexec -l "setenv DISPLAY $MYIP:0; /opt/SAS82/sas" > > First try: > MYIP=`hostname -i` rexec -l "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 -l "setenv DISPLAY > $MYIP:0; /opt/SAS82/sas" > > Or even better, Use ssh: > > DISPLAY=localhost:0 ssh -X -l "/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 >