Sujet : Re: Event loop and http::geturl
De : rich (at) *nospam* example.invalid (Rich)
Groupes : comp.lang.tclDate : 25. Jun 2025, 22:32:42
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <103hptq$30q4s$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Jonathan Kelly <
jonkelly@fastmail.fm> wrote:
proc queue {} {
set ::input [open "|cat test.txt" r]
fconfigure $::input -blocking 0 -buffering line
fileevent $::input readable [list check $::input]
}
Curious why you are opening a pipe to cat, having cat read and print
the contents, and then consuming that, when you can just open text.txt
directly:
set ::input [open test.txt r]
And achieve the same result.