Logging the ^d logoff

William E. Davidsen Jr davidsen at steinmetz.steinmetz.UUCP
Wed Feb 17 06:47:12 AEST 1988


I tried "who am i" on Ultrix and Xenix, and looked in a real SysV
manual. All seem to list the login time of the user, rether than the
current time. May I comment to your attention the "date" command.

How about:
trap "echo `who am i` `date`" 0 1 3

this gives you the one line output you might want.
-- 
	bill davidsen		(wedu at ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.unix.questions mailing list