summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-26 14:40:17 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-02-26 14:42:57 -0800
commit39c42e76dce4a653b788ce0a9a445a00f47c5e09 (patch)
tree70078ee96218b2062cf562af55f06bd1511017a1 /templates
parentedfa85b04ff74bede4d7e7afec725b570325044f (diff)
downloadvyatta-op-39c42e76dce4a653b788ce0a9a445a00f47c5e09.tar.gz
vyatta-op-39c42e76dce4a653b788ce0a9a445a00f47c5e09.zip
add command to show end of log file
Fixes: https://bugzilla.vyatta.com/show_bug.cgi?id=728 New commands: show log tail == tail -f /var/log/messages show log tail N == tail -n N /var/log/messages
Diffstat (limited to 'templates')
-rw-r--r--templates/show/log/tail/node.def2
-rw-r--r--templates/show/log/tail/node.tag/node.def3
2 files changed, 5 insertions, 0 deletions
diff --git a/templates/show/log/tail/node.def b/templates/show/log/tail/node.def
new file mode 100644
index 0000000..65bea1c
--- /dev/null
+++ b/templates/show/log/tail/node.def
@@ -0,0 +1,2 @@
+help: Show last lines of messages file
+run: tail -f /var/log/messages
diff --git a/templates/show/log/tail/node.tag/node.def b/templates/show/log/tail/node.tag/node.def
new file mode 100644
index 0000000..00de686
--- /dev/null
+++ b/templates/show/log/tail/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show last changes to messages
+allowed: echo -n '<NUMBER>'
+run: tail -n "$4" /var/log/messages