From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18326 invoked by alias); 21 Jan 2004 15:41:24 -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 18313 invoked from network); 21 Jan 2004 15:41:22 -0000 Received: from unknown (HELO tom.hrz.tu-chemnitz.de) (134.109.132.38) by sources.redhat.com with SMTP; 21 Jan 2004 15:41:22 -0000 Received: from hedwig.hrz.tu-chemnitz.de ([134.109.132.173] helo=mailbox.hrz.tu-chemnitz.de) by tom.hrz.tu-chemnitz.de with esmtp (Exim 4.22) id 1AjKTq-0004ht-75; Wed, 21 Jan 2004 16:41:22 +0100 Received: from odoaker.hrz.tu-chemnitz.de ([134.109.132.94] ident=[mq5vmLkK/Chky8mzAx8I7OpOJ5nJXbo9]) by mailbox.hrz.tu-chemnitz.de with esmtp (Exim 4.22) id 1AjKTp-0005CM-KF; Wed, 21 Jan 2004 16:41:21 +0100 Received: from localhost (goal@localhost) by odoaker.hrz.tu-chemnitz.de (8.11.6/8.11.6) with ESMTP id i0LFfLc20444; Wed, 21 Jan 2004 16:41:21 +0100 X-Authentication-Warning: odoaker.hrz.tu-chemnitz.de: goal owned process doing -bs Date: Wed, 21 Jan 2004 15:41:00 -0000 From: Alexander Gottwald To: cygwin-xfree@cygwin.com cc: bszk@wright.aps.uoguelph.ca, bo@uoguelph.ca Subject: Re: Initiating a remote X session In-Reply-To: <400E9ABA.6070103@uoguelph.ca> Message-ID: References: <400E9ABA.6070103@uoguelph.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Spam-Report: --- Start der SpamAssassin 2.62 Textanalyse (0.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz --- Ende der SpamAssassin Textanalyse X-Scan-Signature: 1c90534550b6c0ed116ec89d58e8972e X-SW-Source: 2004-01/txt/msg00440.txt.bz2 List-Id: 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