Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 996 Bytes
\begin{Exercise}[title={Finger daemon},difficulty=1]
\label{ex:finger}
\Question
Write a finger daemon that works with the finger(1) command.
From the Debian package description:
\begin{quote}
Fingerd is a simple daemon based on RFC 1196 \cite{RFC1196} that provides an interface to the
``finger'' program at most network sites. The program is supposed to return a
friendly, human-oriented status report on either the system at the moment or a
particular person in depth.
\end{quote}
Stick to the basics and only support a username argument. If the user has a \file{.plan} file
show the contents of that file. So your program needs to be able to figure out:
\begin{itemize}
\item Does the user exist?
\item If the user exists, show the contents of the \file{.plan} file.
\end{itemize}
\end{Exercise}
\begin{Answer}
\begin{lbar}
This solution is from Fabian Becker.
\end{lbar}
\Question
\lstinputlisting[label=src:fingerd,caption=A finger daemon]{ex-communication/src/finger.go}
\end{Answer}
Something went wrong with that request. Please try again.