home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / socket / fingerd.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1992-09-07  |  371 b   |  14 lines

  1. #!/bin/sh
  2. # $Header: fingerd.sh[1.3] Sun Aug  9 03:48:06 1992 nickel@cs.tu-berlin.de proposed $
  3. #
  4. # finger daemon program using socket(1) with primitive logging.
  5. # Set LOGFILE to a file of your choice.
  6.  
  7. LOGFILE=/dev/null
  8.  
  9. socket -sqlvcp '/usr/ucb/finger `head -1 | sed "s|/[Ww]|-l|"`' \
  10.         finger 2>&1 | 
  11.     while read line ; do 
  12.         echo -n $line:\ ; date ;
  13.     done > $LOGFILE
  14.