From af3ce969cc18a635f087561f7768070333c3b398 Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Thu, 7 Jun 2018 23:46:30 +0200 Subject: T689: Convert show users to new syntax --- op-mode-definitions/show-users.xml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 op-mode-definitions/show-users.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-users.xml b/op-mode-definitions/show-users.xml new file mode 100644 index 000000000..a026e47e7 --- /dev/null +++ b/op-mode-definitions/show-users.xml @@ -0,0 +1,30 @@ + + + + + + + Show user information + + who -H + + + + Show 10 recently logged in users + + last -aF -n 10 | sed -e 's/^wtmp begins/Displaying logins since/' + + + + Show specified number of recently logged in users + + NUMBER + + + last -aF -n $4 | sed -e 's/^wtmp begins/Displaying logins since/' + + + + + + -- cgit v1.2.3