2 ms·
On Plan 9 it would be { netdir=/net/tcp/`{cat} echo connect $ip!$port >$netdir/ctl || exit 'cannot connect' echo GET / HTTP/1.1 > $
by sergeykish 6y ago
On Plan 9 it would be
{
netdir=/net/tcp/`{cat}
echo connect $ip!$port >$netdir/ctl || exit 'cannot connect'
echo GET / HTTP/1.1 > $netdir/data
echo > $netdir/data
cat $netdir/data
} < /net/tcp/clone
It used for example in IRC client implemented in rc shell
http://web.archive.org/web/20060620053701/http://plan9.bell-labs.com/sources/contrib/fgb/rc/ircrc http://web.archive.org/web/20060620053701/http://plan9.bell-...