Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: Are there PD programs that... Message-ID: <11197@smoke.BRL.MIL> Date: 30 Sep 89 01:47:32 GMT References: <5588@tank.uchicago.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 27 > (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?