* finger
@ 1995-03-03 4:47 Scott
0 siblings, 0 replies; only message in thread
From: Scott @ 1995-03-03 4:47 UTC (permalink / raw)
Here's a quick and dirty finger client, if anyone is interested.
(There is a carrage return in that final sed. Hopefully not too
many mailers will spoil it.)
#!/bin/rc
~ $#* 0 && { echo 'usage: finger host[!user]' >[1=2] ; exit usage }
ifs='!
' *=`{echo $1}
ifs='
' cs=`{echo tcp!$1!finger | ndb/csquery}
~ $#cs 2 && exit # blech, prompts; need a nicer csquery
remote=$cs(3)
< /net/tcp/clone {
n=`{read}
local=/net/tcp/$n
echo '[' $local '<' $remote ']' >[1=2]
echo connect $remote >$local/ctl
echo $2 >$local/data
cat <$local/data
} | sed 's/\r$//'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-03-03 4:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-03 4:47 finger Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).