same error with socket -server (no tcpserver)
Posted to
tcl
by aspect at Fri Apr 19 22:38:56 GMT 2024
view raw
#!/bin/sh
# \
exec
tclsh "
$0
"
${1+"$@"}
socket
-server serve 4321
proc
serve {sock host port} {
set
fd [
open
/tmp/random.txt rb]
chan copy
$fd
$sock
close
$fd
}
vwait
forever
Recent Posts
tcl by cgm
1 days ago
tcl by egavilan
7 days ago
tcl by smlckz
8 days ago
tcl by Guest86
12 days ago
tcl by mookie
14 days ago
tcl by greycat
19 days ago
tcl by mookie
27 days ago
tcl by mookie
27 days ago
tcl by mookie
33 days ago
tcl by mookie
35 days ago
Submit
New paste
Documentation
From Jabber