not filter today

main
vitrinekast 8 months ago
parent efdf80cd8a
commit fbe9de92e7

@ -61,10 +61,10 @@ logins_today_log = subprocess.run(["sudo", "journalctl","_COMM=systemd-logind",
# TODO: merge into one command and then grep the various _COMM\s, wrap in a function
groupadd_today_log = subprocess.run(["sudo", "journalctl", "-S","today","_COMM=groupadd","-r"], check=True, capture_output=True)
groupremove_today_log = subprocess.run(["sudo", "journalctl", "-S","today","_COMM=groupremove","-r"], check=True, capture_output=True)
usermod_today_log = subprocess.run(["sudo", "journalctl", "-S","today","_COMM=usermod","-r"], check=True, capture_output=True)
userdel_today_log = subprocess.run(["sudo", "journalctl", "-S","today","_COMM=userdel","-r"], check=True, capture_output=True)
groupadd_today_log = subprocess.run(["sudo", "journalctl","_COMM=groupadd","-r"], check=True, capture_output=True)
groupremove_today_log = subprocess.run(["sudo", "journalctl","_COMM=groupremove","-r"], check=True, capture_output=True)
usermod_today_log = subprocess.run(["sudo", "journalctl","_COMM=usermod","-r"], check=True, capture_output=True)
userdel_today_log = subprocess.run(["sudo", "journalctl","_COMM=userdel","-r"], check=True, capture_output=True)
kitchen_services = run_command(["sudo", "journalctl", "-S", "today", "-u", "kitchen-stove.service", "-u", "kitchen-bin.service", "-u", "kitchen-fridge.service", "-r", "-n"]).splitlines()

Loading…
Cancel
Save