Operating System - HP-UX
1748165 Members
3653 Online
108758 Solutions
New Discussion юеВ

How does one send a message to logged in users?

 
SOLVED
Go to solution
John Love_3
Regular Advisor

How does one send a message to logged in users?

I know there's a way. But I don't know how.

Thanks,

John
5 REPLIES 5
Chris Calabrese
Valued Contributor
Solution

Re: How does one send a message to logged in users?

The traditional way is with the "wall" command, which sends a text message to all terminal sessions. I don't know if anyone's every done an equivelant for X sessions.
Brainbench MVP for Unix Administration and Internet Security, SANS Review Editor, and Center for Internet Security HP-UX Benchmark project leader
boley janowski
Trusted Contributor

Re: How does one send a message to logged in users?

# wall
message
d

the ctrl d closes the message and sends it to all users logged in, you can do a man on wall and it will tell you the arguements for sending to a group, ect..

good luck
MANOJ SRIVASTAVA
Honored Contributor

Re: How does one send a message to logged in users?

You can use the write command to the particular tty on which the user is logged in . Do man write.

Manoj Srivastava
MANOJ SRIVASTAVA
Honored Contributor

Re: How does one send a message to logged in users?

Actually wall is ( write all ) where as with the write user tty you can write to a specific user.

Manoj Srivastava
Thierry Poels_1
Honored Contributor

Re: How does one send a message to logged in users?

hi,
how about
echo "your message" > /dev/ttyxxx
and the poor user won't know where the message comes from
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.