delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/03/14:47:25

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-transfer-encoding
:content-type:message-id:date:from:to:subject:references
:in-reply-to; q=dns; s=default; b=d97CbTCYrPJKGt4rfppBRGdTO7eX45
SyluHIm+637qA7r0MrikKZyiJFL+GsAdPdks+9Gh+2rWlgTD3sc4ehC1F+e3wpgE
gtVbLzqZ7JwtvzMwKMMMCMIu5FCQA0Ikez/o5hn+tGBJ/e7KRtJa2dDgVnaWFkts
z3atm7+qTi5cw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:content-transfer-encoding
:content-type:message-id:date:from:to:subject:references
:in-reply-to; s=default; bh=U8CsyACV6oWd4hwyj0eoVm3m8xc=; b=VEL5
6cSlLLzK9lbTd8oO99jDm3GvpF0mCldAoD0rr27Ym9khvI70UUq9QNfg0Xj/dRLj
R9gITl4b5txr6bV7irNp4k6otYtVByNtoiptixatfw1PERR8fs5NXyYNeOa9Fxm5
dYofXorxRzuaAZK8HAjX0QeHh7ceZ/d/uFWkiPM=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: vms173025pub.verizon.net
MIME-version: 1.0
Message-id: <540761FA.1040902@verizon.net>
Date: Wed, 03 Sep 2014 14:46:18 -0400
From: Gerry Reno <greno AT verizon DOT net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7
To: cygwin AT cygwin DOT com
Subject: Re: latest cygwin: 'run' problem
References: <5405C013 DOT 7030503 AT verizon DOT net> <87a96hrki4 DOT fsf AT Rainer DOT invalid> <54060378 DOT 2070108 AT gmail DOT com> <5406680D DOT 4030105 AT verizon DOT net>
In-reply-to: <5406680D.4030105@verizon.net>
X-IsSubscribed: yes

On 09/02/2014 08:59 PM, Gerry Reno wrote:
> On 09/02/2014 01:50 PM, Marco Atzeri wrote:
>>
>> On 02/09/2014 19:37, Achim Gratz wrote:
>>> Gerry Reno writes:
>>>> I have a script that issues this command:
>>>>
>>>>      run $WINDIR/system32/mstsc.exe  /multimon /v:$IP:3389
>>>>
>>>>
>>>> And before this script has always succeeded but now it errors as follows:
>>>>
>>>>      Invalid connection file (/v:192.168.1.27:3389) specified
>>>>
>>>> In a terminal window I can run the command directly and it succeeds:
>>>>
>>>>      $WINDIR/system32/mstsc.exe  /multimon /v:$IP:3389
>>>>
>>>> But 'run' no longer successfully runs the command.
>>>>
>>>> Can someone verify this?
>>> Well I can verify that this happens, but I have no idea why.  It seems
>>> that mstsc doesn't parse the option as option when  started via run…
>>>
>>>
>>> Regards,
>>> Achim.
>>>
>> I noticed that
>>
>>  run "$WINDIR/system32/mstsc.exe  /multimon /v:my_ip:3389"
>>
>> produces equivalent output of
>>
>>  mstsc.exe  /multimon /v:my_ip:3389
>>
>> so eventually run is splitting the arguments in a way that mstsc
>> does not like
>>
>> Marco
>>
>>
> It looks like it's always taking the last argument as a file.
>
> No matter what you put at the end of the line 'run' causes mstsc to think it's a file that needs opened.
>
> Gerry
>
>
> --

On the 32-bit system cygwin installs that haven't been updated yet 'run.exe' shows:

    $ ls -l /usr/bin/run.exe
    -rwxr-xr-x 1 Administrator None 65053 Jul 24  2013 /usr/bin/run.exe

On a 32-bit system with this latest cygwin 'run.exe' shows:

    $ ls -l /usr/bin/run.exe
    -rwxr-xr-x 1 SYSTEM SYSTEM 66077 Jun  9 13:16 /usr/bin/run.exe

Filesize is different so something has changed there.


Gerry



--
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