added "less" to "log" command

This commit is contained in:
Johannes Findeisen 2013-10-29 02:31:52 +01:00
commit ab353eac59

View file

@ -264,7 +264,7 @@ Usage:
self.help_log() self.help_log()
elif text == "less": elif text == "less":
try: 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"): 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") os.system("less " + os.path.dirname(os.path.abspath(__file__)) + "/../../log/linspector.log")
except IOError: except IOError: