SLUG Mailing List Archives
Re: [SLUG] Net send for linux
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Net send for linux
- From: Steffen Schulz <pepe_ml@xxxxxxx>
- Date: Tue, 6 Apr 2010 03:27:29 +1000
- User-agent: Mutt/1.5.20 (2009-06-14)
On 100405 at 23:45, Daryl Thompson wrote:
> Is there a Linux equivalent network messaging command like 'NET SEND' in
> That is i want to be able to send messages to all and individual
> computers on the local network.
Homebrew computer club method works as follows:
netcat -l -p 5000 -c "xmessage -center -default okay -file -"
echo "Your system is infected with a virus, please reboot" | netcat $host 5000
Unfortunately you have to kill the client with ctrl-c before the
message pops up. And I can't get broadcast to work, but you can write a
for-loop around that..
For security, you probably want to replace netcat with ssh. Then
clusterssh can solve the broadcast problem. Note that depending on the
Linux distribution, root might not have access to the user's X server.
For console-only messages, write(1) is a lot of fun.