From: Scott Schwartz schwartz@galapagos.cse.psu.edu
Subject: finger
Date: Thu, 2 Mar 1995 23:47:16 -0500 [thread overview]
Message-ID: <19950303044716.WuJrMDoQVOpmEB7hxzdg1FI9bZk-8iPY8eVxWd62JCE@z> (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$//'
reply other threads:[~1995-03-03 4:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19950303044716.WuJrMDoQVOpmEB7hxzdg1FI9bZk-8iPY8eVxWd62JCE@z \
--to=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).