diff options
author | Jim Patterson | 2016-11-16 18:22:14 +0100 |
---|---|---|
committer | Karel Zak | 2016-12-02 13:53:03 +0100 |
commit | 01544c52f86166a4a5dc81835027e412580396b2 (patch) | |
tree | a154d85fb04a29e8c87bcafdbf96a539468c001e /term-utils/wall.1 | |
parent | lsns: Fix parser for /proc/<pid>/stat which is including space in comm (diff) | |
download | kernel-qcow2-util-linux-01544c52f86166a4a5dc81835027e412580396b2.tar.gz kernel-qcow2-util-linux-01544c52f86166a4a5dc81835027e412580396b2.tar.xz kernel-qcow2-util-linux-01544c52f86166a4a5dc81835027e412580396b2.zip |
wall: add --group option
The wall command on AIX supports a "-g" option to limit the message
to a group of users by gid. Add compatibility to the Linux version.
Thanks to Sami Kerola <kerolasa@iki.fi> for an initial skeleton
implementation.
[kzak@redhat.com: - rename max to ngroups
- add free_group_workspace()
- some cosmetic changes]
Reference: http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds6/wall.htm
Signed-off-by: Jim Patterson <jimp@wegrok.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/wall.1')
-rw-r--r-- | term-utils/wall.1 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/term-utils/wall.1 b/term-utils/wall.1 index 33cd35208..a7da1951e 100644 --- a/term-utils/wall.1 +++ b/term-utils/wall.1 @@ -39,6 +39,8 @@ wall \- write a message to all users .RB [ \-n ] .RB [ \-t .IR timeout ] +.RB [ \-g +.IR group ] .RI [ message " | " file ] .SH DESCRIPTION .B wall @@ -68,6 +70,11 @@ This \fItimeout\fR must be a positive integer. The default value is 300 seconds, which is a legacy from the time when people ran terminals over modem lines. .TP +.BR \-g , " \-\-group " \fIgroup\fR +Limit printing message to members of group defined as a +.I group +argument. The argument can be group name or gid. +.TP .BR \-V , " \-\-version" Display version information and exit. .TP |