Gerald Lester wrote:
> On 08/02/2017 01:48 PM, Les Cargill wrote:
>> Ralf Fassel wrote:
>>> * Les Cargill <
lcarg...@comcast.com>
>>> | Running 8.6.4 off ActiveState
>>>>
>>> | Here's what's weird:
>>>>
>>> | - If I just run tclsh from a command line, I can open the port[1].
>>> | - In a proc within a script, it fails.
>>>
>>> Can you show the code you use?
>>
>> It is exactly the same line of code for both cases. I cut and
>> paste it to a Tcl interpreter for the test.
>>
>>> Can you show the exact error message of the failure?
>>>
>>
>> Essentially "file doesn't exist" The following is a recreation:
>>
>> % set f [ open "COM4:" "r+" ]
>> couldn't open "COM4:": no such file or directory
>> %
>>
>>
>>> R'
>>>
>>
>> I'll do a more thorough followup later.
>>
>
> Are you sure it is called COM4 on both machines at all times (once had a
> USB serial connected that every time it was "disconnected", either via
> software or hardware, and reconnected it got a new port number -- and
> the driver thought a [close] was a disconnect)
>
Understood - yes, it's COM4: in both cases. Effectively, when the