summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-18 14:04:25 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-18 14:04:25 -0800
commit470af351a2225e8eac03b27e95ac193846e8824d (patch)
tree1ed85ecbfbc41b8254bf6c83407ee854a7667c1f
parent4d69b3d8ef4ec0deb5c8294fea9f911e1e9219a6 (diff)
downloadvyatta-op-470af351a2225e8eac03b27e95ac193846e8824d.tar.gz
vyatta-op-470af351a2225e8eac03b27e95ac193846e8824d.zip
Use lesspipe to display gzip files
Bug 3719 Eval of lesspipe sets environment variables so that less can display gzip'd files
-rw-r--r--templates/show/log/all/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/show/log/all/node.def b/templates/show/log/all/node.def
index 069d1d4..243cf1b 100644
--- a/templates/show/log/all/node.def
+++ b/templates/show/log/all/node.def
@@ -1,4 +1,5 @@
help: Show contents of all master log files
-run: less $_vyatta_less_options \
+run: eval $(lesspipe)
+ less $_vyatta_less_options \
--prompt=".log?m, file %i of %m., page %dt of %D" \
-- `printf "%s\n" /var/log/messages* | sort -nr`