From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id GAA08962 for ; Wed, 11 Oct 1995 06:47:11 +1000 (EST) Received: from gauss (math.skiles.gatech.edu) by gatech.edu with SMTP id AA27516 (5.65c/Gatech-10.0-IDA for ); Tue, 10 Oct 1995 16:46:10 -0400 Received: by gauss (5.x/SMI-SVR4) id AA01116; Tue, 10 Oct 1995 16:42:41 -0400 Resent-Date: Wed, 11 Oct 1995 09:07:26 +1300 Old-Return-Path: From: Dave Sainty Message-Id: <199510102007.JAA22029@lido.comp.vuw.ac.nz> To: zsh-workers@math.gatech.edu Subject: Re: "Watch" function? In-Reply-To: Your message of "Tue, 10 Oct 1995 15:53:13 EDT." <9510101953.AA08115@offenbach.sbi.com> X-Face: /B9VTI#fcP.}X/h^;-~C,RyvcjB8gD' s!52iF{}"OR9bmoP Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/440 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu daemonboy writes: > I asked about this a *long* time ago, and heard nothing, so I'll forward the > idea again and see if it flies. > > Instead of/in addition to being able to specify a format string for the > "watch" facility, how hard would it be to have a special function which, if > defined, would be called whenever the "watch" facility "saw" someone > login/logout? (Akin to precmd(), periodic(), chpwd(), etc.) Yeah, I would probably use it.... > My thought is to pop up a Perl/Tk window when someone logged in, rather than > just printing it in the xterm. ....I just wouldn't use it like that... :-) If you're simply going to call a perl script with it, it would seem more sensible to write the whole thing in perl, scan utmp or wtmp yourself. But I would quite like to customise the messages more based on who logged in/out from where.... Dave.