Intercepting system messages (Was Re: talk and talkd)

Andrew Klossner andrew at frip.gwd.tek.com
Sun Apr 24 16:08:12 AEST 1988


	"tell us proles if there's a way to do this, that is, intercept
	system messages so that they don't mess up our windows?"

Talk (at least under 4.2BSD) determine where to send its messages by
reading the utmp file to see which terminal is associated with the
requested user.  Normally it will find the terminal on which "login"
ran.  You can divert talk's messages by changing this file to reflect a
pty and then monitoring that pty somehow.

The utmp file is normally not writable by non-root, so you would need
the collusion of your system administrator to make this sort of change.
This isn't a problem if you use a workstation.  Of course, if you have
a workstation, you could simply rewrite talkd to behave the way you
want.

  -=- Andrew Klossner   (decvax!tektronix!tekecs!andrew)       [UUCP]
                        (andrew%tekecs.tek.com at relay.cs.net)   [ARPA]



More information about the Comp.unix.wizards mailing list