Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "Watch" function?
- X-seq: zsh-workers 440
- From: Dave Sainty <David.Sainty@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: "Watch" function?
- Date: Wed, 11 Oct 1995 09:07:26 +1300
- In-reply-to: Your message of "Tue, 10 Oct 1995 15:53:13 EDT." <9510101953.AA08115@xxxxxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author