Broadcast a message (UNIX)
wall [-a|-l|-n node] [-fFTv] [file]
You use the wall utility to broadcast a message to all users logged in on all nodes of the network, or optionally to users only on a specific node. By default, wall reads the message to be submitted from standard input. Once wall has been invoked, enter the message, then press Ctrl-D to submit the message.
The wall utility now writes to all users on the network by default. Versions previous to QNX4.23 had required the -a option to do this. A -l option is available to restrict writing to users on the local node only. |
If you use the wall utility while you are root (superuser), you should include your real name in the text of the message so recipients will know who is responsible for the message.
Where multiple -a, -l, or -n options appear, the option appearing last on the command line will take effect. Multiple -n node options may not be specified.
There is a ten second timeout on attempting to write to any one tty. If the ten seconds elapses before the entire message has been submitted, wall will abandon the effort and move on to the next tty. Usually a partial message will appear on the tty that was being written to when this occurs.
If user root issues the following:
# wall Warning! Rebooting file server in three minutes for OS upgrade If this is inconvenient come see me (glen) now! ^D
It will broadcast a message like this to all users on the network:
Broadcast message from root (//34/dev/con3) at Thu Oct 24 15:49:01 Warning! Rebooting file server in three minutes for OS upgrade If this is inconvenient come see me (glen) now! EOT
Non-root users can also use wall, but they are not guaranteed to have write permission for the target ttys. If the user issuing wall does not have write permission for the tty, that tty will be skipped and wall will continue delivering the message to the remaining ttys. |
If nameloc managers are being run on nodes which should not be providing name services (see nameloc for guidelines), the network alive list may show many nodes as being down which are in fact up. This can result in only a fraction of the users on the system receiving the message from wall. If you have users on your network who regularly break the nameloc rules, it is recommended that you always use the -f option to wall.