#!/bin/rc
echo -n 'Login: ' $1 ' '
echo 'Real name: ' `{whois $1 | awk 'BEGIN {FS = "|"}
{print $3
exit}'
}
echo 'Last login: ' `{tail -r /sys/log/auth | grep $1 | awk '{print $2, $3, $4
exit}'}
echo -n 'Plan: '
if (test -e /usr/$1/.plan) {
cat /usr/$1/.plan
}
if (! test -e /usr/$1/.plan) {
echo No Plan.
}
|