remove unused files
parent
2f14bd2dfa
commit
1b1f69835d
@ -1,18 +0,0 @@
|
|||||||
import json
|
|
||||||
import subprocess
|
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
## creating the JSON
|
|
||||||
|
|
||||||
## grabbing the logged in users since yesterday
|
|
||||||
last_here = subprocess.run(["last", "-s", "today"], capture_output=True)
|
|
||||||
logged_in_today = subprocess.run(["sudo journalctl -S yesterday _COMM=systemd-logind -o json"], capture_output=True)
|
|
||||||
output = json.loads(last_here)
|
|
||||||
|
|
||||||
print(output)
|
|
||||||
|
|
||||||
today = datetime.today().strftime('%Y-%m-%d-%H:%M:%S')
|
|
||||||
|
|
||||||
with open("data_" + today + ".json", 'w') as f:
|
|
||||||
print(output, file = f)
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>I am a HTML page fillllllled with data, such as the b'up 1 week, 6 hours, 32 minutes\n'</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue