delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/11/22:48:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F0E57DF.8030301@dancol.org>
Date: Wed, 11 Jan 2012 19:47:43 -0800
From: Daniel Colascione <dancol AT dancol DOT org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Opening new cygwin window with arguments
References: <CANc+RapKxS3xVVxtXo6=NYfpfvL=B2Sdk8xKaJ1UVPRKRgxvBA AT mail DOT gmail DOT com>
In-Reply-To: <CANc+RapKxS3xVVxtXo6=NYfpfvL=B2Sdk8xKaJ1UVPRKRgxvBA@mail.gmail.com>
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

--------------enigC89EBABB27F2CDD9F5525116
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 1/11/12 7:07 PM, Jon Hughes wrote:
> What I want to do is open a new cygwin window=20

There's no such thing as a "cygwin window". Do you mean a mintty instance?

> with a tail command, so
> I have the parent process still running, and this runoff process in
> another window. I've found cygstart, but I can't figure out the syntax
> to do essentially this:
>=20
> cygstart sh "tail -f foo"
>=20
> Any help would be appreciated

You want to run:

mintty -e tail /your/file/here

(Note that it's _not_ -e "tail /your/file/here". -e works a bit like
cmd.exe's /c flag in that it interprets all following arguments as
part of the command to run.)


--------------enigC89EBABB27F2CDD9F5525116
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk8OV98ACgkQ17c2LVA10Vst9gCfQN7sT5Ir8p5UiQMjFHBcRkhK
vjcAniSj0lDcrA0kalDdbAvGPGWgOF3r
=nrhz
-----END PGP SIGNATURE-----

--------------enigC89EBABB27F2CDD9F5525116--

- Raw text -


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