LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-02-2003, 08:55 PM   #1
Tarts
Member
 
Registered: Feb 2003
Distribution: Slackware 9.1 (exclusively) ;)
Posts: 344

Rep: Reputation: 30
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.
 
Old 10-02-2003, 08:57 PM   #2
xdrainox
LQ Newbie
 
Registered: Aug 2003
Posts: 16

Rep: Reputation: 1
#> echo put your message here >> file.txt
#> wall file.txt

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

Last edited by xdrainox; 10-02-2003 at 08:59 PM.
 
1 members found this post helpful.
Old 10-02-2003, 09:24 PM   #3
Tarts
Member
 
Registered: Feb 2003
Distribution: Slackware 9.1 (exclusively) ;)
Posts: 344

Original Poster
Rep: Reputation: 30
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!

Last edited by Tarts; 10-03-2003 at 08:59 AM.
 
Old 10-03-2003, 01:50 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
I thought you can straight away wall on the command line...

ie: wall Hey you people!!!
 
Old 10-03-2003, 02:48 AM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Post 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.

Thanks.

 
Old 10-03-2003, 03:22 AM   #6
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
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;
 
Old 10-03-2003, 03:27 AM   #7
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
freeBSD wont let me wants a
<group> <filename>
 
Old 10-03-2003, 09:21 AM   #8
Tarts
Member
 
Registered: Feb 2003
Distribution: Slackware 9.1 (exclusively) ;)
Posts: 344

Original Poster
Rep: Reputation: 30
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

Last edited by Tarts; 10-03-2003 at 10:00 AM.
 
Old 09-28-2010, 06:10 PM   #9
msmi10
LQ Newbie
 
Registered: Jul 2010
Location: Sunnyvale CA
Distribution: Ubuntu 10.04
Posts: 1

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

Last edited by msmi10; 10-04-2010 at 09:45 AM.
 
Old 09-28-2010, 06:21 PM   #10
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally Posted by msmi10 View Post
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.

 
Old 09-28-2010, 06:26 PM   #11
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
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.
 
Old 09-30-2010, 08:57 PM   #12
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
I had forgotten I even had a membership here
dang

zombie thread
 
Old 10-02-2010, 12:10 PM   #13
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380

Rep: Reputation: 31
First, stop the apostrophe abuse...
 
Old 01-12-2011, 07:40 PM   #14
aggravatedgestalt
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by GazL View Post
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?
 
Old 01-12-2011, 09:14 PM   #15
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally Posted by aggravatedgestalt View 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?
This works here:

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

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending message to a user's console GUIPenguin Linux - General 1 10-27-2005 11:38 AM
broadcast message to all santosh_rao99 Linux - Networking 2 07-28-2004 11:41 PM
sending broadcast message in c raven Programming 1 12-06-2003 01:55 PM
broadcast message to all users JustinHoMi Linux - Software 1 11-14-2003 08:34 AM
How do I broadcast a message? miknight Linux - General 3 04-26-2003 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration