diff options
author | Daniil Baturin <daniil@baturin.org> | 2013-12-02 03:34:04 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2013-12-02 03:34:04 +0100 |
commit | 50ea8be3e263ecbb44083cdabb2544c92ad66b2f (patch) | |
tree | b1de4f558b0bb1e07584f3e1c4765776e7294dac | |
parent | cdc72f6f6296a63c979b989511fff65d4909d205 (diff) | |
download | vyatta-op-50ea8be3e263ecbb44083cdabb2544c92ad66b2f.tar.gz vyatta-op-50ea8be3e263ecbb44083cdabb2544c92ad66b2f.zip |
Bug #24: add a command to display recently logged in users.
-rw-r--r-- | templates/show/users/recent/node.def | 2 | ||||
-rw-r--r-- | templates/show/users/recent/node.tag/node.def | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/templates/show/users/recent/node.def b/templates/show/users/recent/node.def new file mode 100644 index 0000000..9199d6d --- /dev/null +++ b/templates/show/users/recent/node.def @@ -0,0 +1,2 @@ +help: Show 10 recently logged in users +run: last -aF -n 10 | sed -e "s/^wtmp begins/Displaying logins since/" diff --git a/templates/show/users/recent/node.tag/node.def b/templates/show/users/recent/node.tag/node.def new file mode 100644 index 0000000..a37e6e0 --- /dev/null +++ b/templates/show/users/recent/node.tag/node.def @@ -0,0 +1,3 @@ +help: Show specified number of recently logged in users +allowed: echo -n '<NUMBER>' +run: last -aF -n $4 | sed -e "s/^wtmp begins/Displaying logins since/" |