added "less" to "log" command
This commit is contained in:
parent
2d437f434a
commit
ab353eac59
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ Usage:
|
|||
self.help_log()
|
||||
elif text == "less":
|
||||
try:
|
||||
# TODO: do the tail on the logfile set by args and not a static path
|
||||
# TODO: do the less on the logfile set by args and not a static path
|
||||
with open(os.path.dirname(os.path.abspath(__file__)) + "/../../log/linspector.log"):
|
||||
os.system("less " + os.path.dirname(os.path.abspath(__file__)) + "/../../log/linspector.log")
|
||||
except IOError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue