LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to broadcast a message to all user's. (https://www.linuxquestions.org/questions/slackware-14/how-to-broadcast-a-message-to-all-users-99634/)

Tarts 10-02-2003 08:55 PM

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.

xdrainox 10-02-2003 08:57 PM

#> echo put your message here >> file.txt
#> wall file.txt

I dont know if theres any other options.. man wall.

Tarts 10-02-2003 09:24 PM

Quote:

Originally posted by xdrainox
#> echo put your message here >> file.txt
#> wall file.txt

I dont know if theres any other options.. man wall.

Thank's alot!

Allow me to show you the result's:

Code:

#!/bin/bash
MODTIME=/var/log/modfile
TMP=tmp

find / -mtime 2 -o ctime 2 &> $MODTIME
echo 1> /dev/null
echo "Mirrus: Check '/var/log/modfile'." &> $TMP
wall $TMP
rm $TMP
exit 0

Next learn 'crond' and have it run on specified interval's!

Thank's!

Azmeen 10-03-2003 01:50 AM

I thought you can straight away wall on the command line...

ie: wall Hey you people!!!

dalek 10-03-2003 02:48 AM

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

micxz 10-03-2003 03:22 AM

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;

ehdwuld 10-03-2003 03:27 AM

freeBSD wont let me wants a
<group> <filename>

Tarts 10-03-2003 09:21 AM

Quote:

Originally posted by Azmeen
I thought you can straight away wall on the command line...

ie: wall Hey you people!!!

This does not work on my system, wall need's a file, by default it supposed to read from 'stdin', but this does not work, i'm sure there's a way to redirect or something....

{edit}

#wall
Hello!

then type ctrl d
{edit2}

#echo "Hello users, the date is `date`" | wall

msmi10 09-28-2010 06:10 PM

On my Ubuntu 10.04 I use something like:
echo Please log off now!!! | wall

dalek 09-28-2010 06:21 PM

Quote:

Originally Posted by msmi10 (Post 4111953)
On my Ubuntu 10.04 I use something like:
"Please log off now!!!" | wall

Wow! You dug deep to find this old thread. It's only 7 years old. :D

:) :)

GazL 09-28-2010 06:26 PM

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.

ehdwuld 09-30-2010 08:57 PM

I had forgotten I even had a membership here
dang

zombie thread

WilliamS 10-02-2010 12:10 PM

First, stop the apostrophe abuse...

aggravatedgestalt 01-12-2011 07:40 PM

Quote:

Originally Posted by GazL (Post 4111960)
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.

Gee wiz dude! I am glad that fellow actually posted that. With quotation marks it almost works; but I haven't seen anyone post a good answer yet. Is this an unauspicious first post too? And, the essential CLI should still apply even 7 years later, no?

dalek 01-12-2011 09:14 PM

Quote:

Originally Posted by aggravatedgestalt (Post 4222356)
Gee wiz dude! I am glad that fellow actually posted that. With quotation marks it almost works; but I haven't seen anyone post a good answer yet. Is this an unauspicious first post too? And, the essential CLI should still apply even 7 years later, no?

This works here:

Code:

wall -n "please log off now"
It even does a pop up in KDE4. One of those "notify" thingys. lol

:D :D


All times are GMT -5. The time now is 11:11 AM.