From 18ead4faf5d9b99272a2401f4e4b2174e86329cc Mon Sep 17 00:00:00 2001 From: ueno Date: Wed, 9 Oct 2019 09:59:18 +0900 Subject: [PATCH] dmesg log --- rpi_web.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpi_web.py b/rpi_web.py index eb93073..1a92ac0 100644 --- a/rpi_web.py +++ b/rpi_web.py @@ -1009,6 +1009,10 @@ def downloadlog(): cmd = 'cp -r ' + WEBDIR + '/logs/ ' + PROGDIR + '/logfiles/rpiweb' linux_cmd_subprocess(cmd) + #dmesg + cmd = 'dmesg > ' + PROGDIR + '/logfiles/dmesg.log' + linux_cmd_subprocess(cmd) + os.chdir(PROGDIR) date = "{0:%Y%m%d%H%M%S}".format(datetime.datetime.now()) + '.tar.gz' hostname = linux_cmd_subprocess('hostname').strip()