Skip to content

Commit

Permalink
dmesg log
Browse files Browse the repository at this point in the history
  • Loading branch information
nayuta-ueno committed Oct 9, 2019
1 parent 973ec89 commit 18ead4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpi_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 18ead4f

Please sign in to comment.