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 oldlaptop
1 days ago
tcl by apn
4 days ago
tcl by rmax
6 days ago
tcl by kevin_walzer
10 days ago
tcl by Bradipo
25 days ago
tcl by Stu
47 days ago
tcl by rhobart
60 days ago
tcl by stevel
64 days ago
tcl by dandyn
72 days ago
tcl by dandyn
72 days ago
Submit
New paste
Documentation
From Jabber