laston.c - determine last time user has logged on

Tom Neff tneff at bfmny0.UU.NET
Wed Jan 10 08:17:10 AEST 1990


In article <1540 at lakesys.lakesys.com> davek at lakesys.lakesys.com (Dave Kraft) writes:
>Here's a little something I wrote to help me determine when I've last logged
>on...

Perhaps a bit overdone?  How about

	#! /bin/sh
	lof=$HOME/.laston
	test -f $lof && echo "Last on: "`cat $lof`
	date > $lof

-- 
'We have luck only with women -- not spacecraft!'     \\  Tom Neff
 -- R. Kremnev, builder of failed Soviet FOBOS probes //  tneff at bfmny0.UU.NET



More information about the Alt.sources mailing list