latest cygwin: 'run' problem
Gerry Reno
greno@verizon.net
Wed Sep 3 18:46:00 GMT 2014
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
More information about the Cygwin
mailing list