This commit is contained in:
midoks
2022-06-19 09:39:57 +08:00
parent 1908b92a0b
commit 694f15d1da
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@
<p onclick="pluginLogs('sys-opt','','sec_run_log', 20);">安全日志</p>
<p onclick="pluginLogs('sys-opt','','msg_run_log', 20);">常用日志</p>
<p onclick="pluginLogs('sys-opt','','cron_run_log', 20);">任务日志</p>
<p onclick="pluginRollingLogs('sys-opt','','sys_run_log', 20);">系统日志</p>
<p onclick="pRead()">说明</p>
</div>
<div class="bt-w-con pd15">
+6
View File
@@ -114,6 +114,10 @@ def msgRunLog():
def cronRunLog():
return '/var/log/cron'
def systemRunLog():
return '/var/log/syslog'
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
@@ -138,5 +142,7 @@ if __name__ == "__main__":
print(msgRunLog())
elif func == 'cron_run_log':
print(cronRunLog())
elif func == 'sys_run_log':
print(systemRunLog())
else:
print('err')