<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="finger@">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>finger@</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">djbwares</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>finger@</refname>
<refpurpose>gets user information from a remote host.</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>finger@</command>
<arg choice='opt'><replaceable>host</replaceable><arg choice='opt'><replaceable>user</replaceable></arg></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection>
<title>Description</title>

<para>
<command>finger@</command> uses <citerefentry><refentrytitle>tcpclient</refentrytitle><manvolnum>1</manvolnum></citerefentry> to connect to TCP port 79 on <replaceable>host</replaceable>, sends <replaceable>user</replaceable> (followed by a newline), and prints any data that it receives. 
It uses <citerefentry><refentrytitle>addcr</refentrytitle><manvolnum>1</manvolnum></citerefentry> to ensure that <replaceable>user</replaceable> is terminated by CR+LF.
It uses <citerefentry><refentrytitle>delcr</refentrytitle><manvolnum>1</manvolnum></citerefentry> and <citerefentry><refentrytitle>cat</refentrytitle><manvolnum>1</manvolnum></citerefentry> to remove CR (\015) and convert unprintable characters to a visible format. 
</para>

<para>
If <replaceable>host</replaceable> is not supplied, <command>finger@</command> connects to the local host. 
If <replaceable>user</replaceable> is not supplied, <command>finger@</command> sends a zero-length string (followed by a newline).
</para>

<para>
TCP port 79 is the well-known port for the Finger service.
Some computers respond to connections on this port with information about <replaceable>user</replaceable>.
If <replaceable>user</replaceable> is zero-length, some computers respond with information about all of the users who are logged in.
</para>

</refsection>

<refsection>
<title>History</title>
<para>
<command>finger@</command> was originally part of <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>'s ucspi-tcp toolset in 1999.
</para>
</refsection>

<refsection>
<title>Author</title>
<para>
Original code and documentation by <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>.
Documentation modernizations by <personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname>.
</para>
</refsection>

</refentry>

