3 ms·
You can do this with Tcl ! I wrote an extension called "pipethread" to make UNIX shell pipelining more natural. It uses threads instead of processes but other
by rkeene2 10y ago
You can do this with Tcl ! I wrote an extension called "pipethread" to make UNIX shell pipelining more natural. It uses threads instead of processes but otherwise operates pretty similarly.
Example: set lsOutput [pipethread::pipe exec ls | exec tac | foreach line { puts $outchan "[string length $line]:$line" } | { gets $inchan line; puts $outchan $line }]
Usage: https://chiselapp.com/user/rkeene/repository/pipethread/artifact/6fdd49244dbc66711be37f34b0a7bd0aeaa11d33?txt=1&ln=141-215 https://chiselapp.com/user/rkeene/repository/pipethread/arti...