summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show/users/recent/node.def2
-rw-r--r--templates/show/users/recent/node.tag/node.def3
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/"