This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: latest cygwin: 'run' problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]