wall


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers wall
# 1  
Old 01-31-2002
wall

is there a command to send all terminals a message. i tired wall, but it only sends the message to who ever is logged in at a terminal. i need a command to send to every terminal no matter if someone is logged in or not.

Thanks!

-The DJ
# 2  
Old 01-31-2002
Wall

I don't know if you could send wall messages to 'dead' terminals. But I know you could use 'mail' to send messages to all users, either logged on or not.

Sola
# 3  
Old 01-31-2002
'mail' just sends an email to everyone, right? maybe i explaned it a little weird:

what i am trying to do is send every dummy terminal a message when i want them to log off the system. when a user is logged in, they recieve the message, but if no one is logged in at that terminal ,nothing is displayed on the screen.

hope this helps explain it a little better Smilie



-djatwork
# 4  
Old 01-31-2002
(I guessed as much that that is what you want). You may not worry about terminals that are not logged on since you want them logged off.

However, if you could write a small 'cron' message that would be executing the time you want users logged off, it may solve a bit, but a terminal has to logg on to receive the message allthesame.

Sola
# 5  
Old 01-31-2002
thats what i was afraid of. see what the whole point of this is, is that i wanted to write a message to users to stay logged off the system until a predetermined time. so, lets say i am rebuilding a index for a database and i want everyone to stay off the system until 10:00, the message would be on the screen. but, when i use 'wall' it does not show up, just the login screen.


Smilie Smilie

-djatwork
# 6  
Old 01-31-2002
You could always write a script to echo to the tty devices. The device names depend on the OS you're running, but they should be something like /dev/ttya, /dev/ttyb, etc.

i.e.

echo "Please logoff the system until 5pm." > /dev/ttya
# 7  
Old 02-01-2002
I would do it the way wizard suggests...
First, I would make a list of all terminal devices, then read from that list and echo a message:
Code:
 # cat term-list
/dev/tty2
/dev/tty3
/dev/tty4
 #
 # cat send_message.sh
#!/usr/bin/sh
for each in `cat term-list`
do
echo "\n\n\n\n\tPlease log out until 10:00 PM" >>$each
echo "I am currently rebuilding the database" >>$each
done
 #

You might want to leave your terminal out of the list, do you're screen doesn't get interrupted, and maybe also send out a wall message to everyone logged in first, so their terminal doesn't get screwed up right before they have to log out.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Up Against a Brick Wall with Cyberspace SA and Unity3D

Well, it's not working out.... ! After spending over a year coding in C# and Unity 3D creating a new way to visualize cyberspace, I recently purchased a fully maxed out 12-core CPU MacPro with 64 GB of RAM so I could gain performance by utilizing the 12-cores (24 virtual cores) waiting for Unity... (1 Reply)
Discussion started by: Neo
1 Replies

2. What is on Your Mind?

Cyber wall? just for me?

I do have a question about the great cyber wall of certain countries, like the UK for example. For years I just fetched once a week a public podcast that recently answered "notukerror", by chance I read just this weekend on slashdot about this topic. Does this mean the efforts enhanced by the EME... (4 Replies)
Discussion started by: 1in10
4 Replies

3. SuSE

Wall execution problems from cron

So I've been tasked with creating a shell script to run in a cron every few minutes to check duplex settings on my eth0 nic card. I would like for the server to send a wall message to whoever is on the console or in a terminal session. Below is what I have so far. 0,10,20,30,40,50 * * * * ... (1 Reply)
Discussion started by: lutador72
1 Replies

4. Red Hat

Fire wall Check

Is Proxy IP detectable in Firewall??? Can we monitor the Proxy IPs too?? If it is possible then explain me the procedures and How it will. . . (0 Replies)
Discussion started by: Adhi
0 Replies

5. Fedora

wall and write commands are not working

hi friends i am using fedora linux operating system on the server and two clients(with windows os) are connected to it(server ).but here wall and write cmds are not working to send messages from one system to another system . pls help me (4 Replies)
Discussion started by: sankar_vitam
4 Replies

6. Shell Programming and Scripting

using the wall or write cmd

Hi all, i'm trying to generate a "pop up window" incorporating either the write or wall command or both. Is such a thing possible ? thanks simon2000 (2 Replies)
Discussion started by: simon2000
2 Replies

7. UNIX for Dummies Questions & Answers

wall and rwall commands

let's say in my office i have 20 networked sun boxes named host1 through host20. i am currently logged in as root at some random machine, which we will say host13 for this scenario's sake. now, is there any way i can send a text message of some sort over the whole network to all logged in... (1 Reply)
Discussion started by: AMisledDrummer
1 Replies

8. UNIX for Dummies Questions & Answers

wall commands

I would like to know when using the wall command can I send a message to a specific user that is logged in. Thank you (1 Reply)
Discussion started by: nascar.fan
1 Replies
Login or Register to Ask a Question