How to broadcast a message to all user's.
Hello!
I would like to broadcast a messsage to all user's on any terminal's. I've looked into 'talk' and 'write', I was looking for something similar the way shutdown work's: 'shutdown -r now "The system is going for a reboot"' Any advise on a way to accomplish this goal of mine? Thank you, Tarts. |
#> echo put your message here >> file.txt
#> wall file.txt I dont know if theres any other options.. man wall. |
Quote:
Allow me to show you the result's: Code:
#!/bin/bash Thank's! |
I thought you can straight away wall on the command line...
ie: wall Hey you people!!! |
Mine did
It worked on mine in Mandrake 9.1.
[root@smoker dale]# wall "hey you people" [root@smoker dale]# Broadcast message from root (pts/1) (Fri Oct 3 02:43:04 2003): hey you people [root@smoker dale]# he he he he he he. I learned something new. :D Thanks. :D :D :D :D :D |
My experiences:
micxz@mars:~> wall message.txt wall: will not read message.txt - use stdin. micxz@mars:~> cat message.txt | wall Broadcast Message from micxz@mars (/dev/pts/4) at 1:21 ... Hello' This is a cool thing you can do; Works nice; also: micxz@mars:~> wall testing typing now cntrl-D twice fast; Broadcast Message from micxz@mars (/dev/pts/4) at 1:21 ... testing typing now cntrl-D twice fast; Works also; |
freeBSD wont let me wants a
<group> <filename> |
Quote:
{edit} #wall Hello! then type ctrl d {edit2} #echo "Hello users, the date is `date`" | wall |
On my Ubuntu 10.04 I use something like:
echo Please log off now!!! | wall |
Quote:
:) :) |
1) Why are you resurrecting a 7 year old thread?
2) You didn't even get the command right! You'd end up getting a "Please log off now" command not found, doing that! Not exactly an auspicious first post. |
I had forgotten I even had a membership here
dang zombie thread |
First, stop the apostrophe abuse...
|
Quote:
|
Quote:
Code:
wall -n "please log off now" :D :D |
All times are GMT -5. The time now is 11:11 AM. |