Are there PD programs that...
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat Sep 30 11:47:32 AEST 1989
> (1) start up a daemon that tells me when someone else
> logs onto the system?
#!/usr/5bin/sh
# watchwho -- watch who logs in and out
# adapted from Kernighan & Pike
PATH=/usr/5bin:/bin:/usr/bin
new=/usr/tmp/wwho1.$$
old=/usr/tmp/wwho2.$$
trap 'rm -f $new $old; exit 1' 1 2 3 15
>$old
while :
do who >$new
diff $old $new
mv $new $old
sleep 60
done | awk '/>/ { $1 = "in: "; print }
/</ { $1 = "out: "; print }'
> (2) that tells a su when an application opens any file
> (for read/write/ or execute) ? Would this have to go
> into the kernel?
This would require kernel support. Why would you need this?
More information about the Comp.unix.questions
mailing list