www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/14/10:49:36

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4A85796F.9040009@bopp.net>
Date: Fri, 14 Aug 2009 09:49:19 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7 & Windows Batch File & mount temp in windows temp before starting...
References: <200908140854968.SM08060@[80.243.163.15]>
In-Reply-To: <200908140854968.SM08060@[80.243.163.15]>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Purrer Wolfgang wrote:
> I want to provide  X – Services on a Windows Terminal Server.
> 
> Cygwin is on a file share
> 
> To get xwin to work, i have to mount /tmp to %temp%
> 
> But with 1.7 the mount points aren’t saved in the registry any more
> 
> So a „Windows -  batch – file „  like this doesnt work
> 
> mount %TEMP% /tmp
> xwin –ac –query 1.2.3.4
> 
> How do you i proceed?

Maybe you could modify your batch file to contain something like the
following instead:

PATH=C:\cygwin\bin;%PATH%
C:\cygwin\bin\bash -c "mount \"$(cygpath -w \"$TEMP\")\" /tmp && xwin
–ac –query 1.2.3.4"

This should ensure that your new mount isn't lost before running xwin
since the same Cygwin session is running both mount and xwin.  I tested
this over a remote desktop session running mintty instead of xwin, and
it seems to set things up like you want.

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019