From 01544c52f86166a4a5dc81835027e412580396b2 Mon Sep 17 00:00:00 2001 From: Jim Patterson Date: Wed, 16 Nov 2016 12:22:14 -0500 Subject: 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 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 Signed-off-by: Karel Zak --- term-utils/wall.1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'term-utils/wall.1') 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 -- cgit v1.2.3-55-g7522