08-30-2008
Send a massive message to the connected users
How can I send a message for all the users connected into the system at the same time? Let's say I need to reboot the server and I ask the users to save their jobs becasue the server will be rebooted?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello: How would you send message to other unix users logged in into the system now.. what should i verify, before sending them a mail across that displays mesage on the terminal. Any man pages? Thanks, ST2000 (2 Replies)
Discussion started by: ST2000
2 Replies
2. UNIX for Dummies Questions & Answers
Hello every body
Happy new year and merry christmass.
Is there a way to monitor the users who are connecting to a Solaris 2.8 Sun Spark workstation . I just need to monitor the users and the command they are usning during telnet or rsh to my workstation.
Cheers (2 Replies)
Discussion started by: Reza Nazarian
2 Replies
3. UNIX for Dummies Questions & Answers
What is the best way to send message from Unix script to PC users connected to the box ?
I tried "smbclient -M <machine>" but doesn't work. I prefer not to use Samba.
Thanks. (3 Replies)
Discussion started by: mnagaya
3 Replies
4. Shell Programming and Scripting
Hi All,
I want to send a message through email.
I have written below code. But it is not worling. Anybody has idea, why it is not working?.
export $file1=$home1/pip1.$$
mailx -s "This Message from unix" abc@yahoo.com< $file1
thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies
5. UNIX for Advanced & Expert Users
How to send a message to another unix terminal along with the date specified (4 Replies)
Discussion started by: aajan
4 Replies
6. UNIX for Advanced & Expert Users
Hi people,
i tried to search in the forum... but didnt found the answer...
Sometimes i need to send a console message to all users in all tty, like reboot or shutdown does...
But i cant find how to do that.
Someone know?
Thanks a lot (2 Replies)
Discussion started by: gfca
2 Replies
7. Shell Programming and Scripting
Hello everyone, I was trying to get the all logins of the users connected with awk, using "w" command,
I probe with this:
w|awk 'NR>2 {print $1}'
But I'm not sure...
is it ok?
Thank You so much! (2 Replies)
Discussion started by: adiegorpc
2 Replies
8. Post Here to Contact Site Administrators and Moderators
To be able to send PMs your post count must be 10 or greater.
You currently have 16 posts. If you have a question for the forum moderators and/or administrators, please post your question here.
...you might want to try searching the forums:
What am I doing wrong? (3 Replies)
Discussion started by: -=XrAy=-
3 Replies
9. AIX
hello friends I need to send a text message MSM by AIX with a function called CURL you have some example of how it is done so that you can help me please (4 Replies)
Discussion started by: tricampeon81
4 Replies
LEARN ABOUT OPENSOLARIS
wall
wall(1M) System Administration Commands wall(1M)
NAME
wall - write to all users
SYNOPSIS
/usr/sbin/wall [-a] [-g grpname] [filename]
DESCRIPTION
wall reads its standard input until an end-of-file. It then sends this message to all currently logged-in users preceded by:
Broadcast Message from ...
If filename is given, then the message is read in from that file. Normally, pseudo-terminals that do not correspond to rlogin sessions are
ignored. Thus, when using a window system, the message appears only on the console window. However, -a will send the message even to such
pseudo-terminals.
It is used to warn all users, typically prior to shutting down the system.
The sender must be superuser to override any protections the users may have invoked See mesg(1).
wall runs setgid() to the group ID tty, in order to have write permissions on other user's terminals. See setuid(2).
wall will detect non-printable characters before sending them to the user's terminal. Control characters will appear as a " ^ " followed
by the appropriate ASCII character; characters with the high-order bit set will appear in "meta" notation. For example, ` 03' is dis-
played as `^C' and `372' as `M-z'.
OPTIONS
The following options are supported:
-a Broadcast message to the console and pseudo-terminals.
-g grpname Broadcast to the users in a specified group only, per the group database (see group(4)).
ENVIRONMENT VARIABLES
If the LC_* variables (LC_CTYPE, LC_TIME, LC_COLLATE, LC_NUMERIC, and LC_MONETARY) are not set in the environment, the operational behav-
ior of wall for each corresponding locale category is determined by the value of the LANG environment variable. See environ(5). If LC_ALL
is set, its contents are used to override both the LANG and the other LC_* variables. If none of the above variables are set in the envi-
ronment, the "C" (U.S. style) locale determines how wall behaves.
FILES
/dev/tty*
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------------------------------------+
|ATTRIBUTE TYPE ATTRIBUTE VALUE |
|Availability SUNWcsu |
+-----------------------------------------------------------+
SEE ALSO
mesg(1), write(1), setuid(2), attributes(5), environ(5)
NOTES
wall displays ``Cannot send to ...'' when the open on a user's tty file fails.
SunOS 5.11 13 Jul 1994 wall(1M)