summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-10 11:03:51 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:30 -0500
commit2630606ad9e0eadd350fd0692aeb5bd4503b7b4f (patch)
treefa923fed7c751d0de1468f3eaa710900c06b3ee4 /templates/show
parent1f9215b3a965e7b0b73fdbdd71b8e00e3c8b0481 (diff)
downloadvyatta-op-2630606ad9e0eadd350fd0692aeb5bd4503b7b4f.tar.gz
vyatta-op-2630606ad9e0eadd350fd0692aeb5bd4503b7b4f.zip
'show log tail <NUMBER>' should still be a show command, not a monitor command.
(cherry picked from commit ee0662c27b696d734424bd3d657a57059f3db548)
Diffstat (limited to 'templates/show')
-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..510f598
--- /dev/null
+++ b/templates/show/log/tail/node.def
@@ -0,0 +1,2 @@
+help: Monitor last lines of messages file
+run: tail /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..9f84f5a
--- /dev/null
+++ b/templates/show/log/tail/node.tag/node.def
@@ -0,0 +1,3 @@
+help: monitor last changes to messages
+allowed: echo -n '<NUMBER>'
+run: tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat}