delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/19/16:01:36

X-Spam-Check-By: sourceware.org
Message-ID: <43CFF96E.9010401@gmx.de>
Date: Thu, 19 Jan 2006 21:41:18 +0100
From: Holger Krull <holger DOT krull AT gmx DOT de>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: problen with run command and the environment
References: <20060119000230 DOT 30295 DOT qmail AT web35612 DOT mail DOT mud DOT yahoo DOT com> <43CFF32F DOT 8060802 AT gmx DOT de> <Pine DOT GSO DOT 4 DOT 63 DOT 0601191525040 DOT 24304 AT access1 DOT cims DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.63.0601191525040.24304@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Igor Peshansky schrieb:
> On Thu, 19 Jan 2006, Holger Krull wrote:
> 
>> Maybe have bash start run starting bash, like that:
>>
>> E:\cygwin\bin\bash.exe -c -l 'run bash -c -l "CYGWIN=server Xwin.exe :0 -query murpel &" '
>>
>> It looks overly complicated, but helps me to keep the cygwin dirs from
>> the windows Path Variable and to get rid of the extra shell window.
> 
> This will still flash the bash window, however briefly, when started from
> a shortcut.  The whole point of starting "run" first is to avoid that
> window.

I forgot to mention that i use this as a link on my desktop and in the properties i set start minimized. So i the bash doesn't show up at all


>  Also, you want to do "exec XWin" from bash, to avoid the extra
> bash process hanging around.

the & handles this

> BTW, one rarely mentioned alternative to "run" is "setsid". 

There was a reason i didn't use setsid, but i don't remember it now. I need to check the discussion on Xfree list back then.


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

- Raw text -


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