File: fingerd.sh

package info (click to toggle)
socket 1.1-10
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 128 kB
  • ctags: 81
  • sloc: ansic: 947; makefile: 159; sh: 18
file content (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# $Header: fingerd.sh[1.3] Sun Aug  9 03:48:06 1992 nickel@cs.tu-berlin.de proposed $
#
# finger daemon program using socket(1) with primitive logging.
# Set LOGFILE to a file of your choice.

LOGFILE=/dev/null

socket -sqlvcp '/usr/ucb/finger `head -1 | sed "s|/[Ww]|-l|"`' \
		finger 2>&1 | 
	while read line ; do 
		echo -n $line:\ ; date ;
	done > $LOGFILE