diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-26 14:40:17 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-26 14:42:57 -0800 |
commit | 39c42e76dce4a653b788ce0a9a445a00f47c5e09 (patch) | |
tree | 70078ee96218b2062cf562af55f06bd1511017a1 /templates | |
parent | edfa85b04ff74bede4d7e7afec725b570325044f (diff) | |
download | vyatta-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.def | 2 | ||||
-rw-r--r-- | templates/show/log/tail/node.tag/node.def | 3 |
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 |