Messaging users who are logged on ...

Net Llama! netllama
Wed Jan 4 13:21:36 PST 2006


On Wed, 4 Jan 2006, Bill Campbell wrote:
> On Wed, Jan 04, 2006, Net Llama! wrote:
> >On Wed, 4 Jan 2006, Roger Oberholtzer wrote:
> >> On Wed, 2006-01-04 at 07:57 -0600, Ben Duncan wrote:
> >> > Ok, this deals with an AIX box, but the script should run for/on
> >> > my LINUX users as well.
> >> >
> >> > I need to "interrupt" telnet users with a message.
> >> > This means, saving their screen, writing a message, having
> >> > them acknowledge it somehow and the resuming their screen
> >> > image.
> >> >
> >> > I can pretty much get to the point where I have all the user ID's
> >> > and pts/x 's in a list in the script, now which "write" command can
> >> > do that ?
> >>
> >> The 'talk' program?
> >
> >there's also "wall" if you just want to broadcast the same message to
> >everyone on the box.
>
> It's been something like 20 years since I last looked at talk and
> wall, but don't the users have to take some action to allow these
> to work (or is it that they have to to prevent them from working)?

talk requires the user to accept the request.  wall is just blasted out to
everyone's tty regardless of whether they want it or not.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org


More information about the Linux-users mailing list