-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
37 lines (34 loc) · 785 Bytes
/
main.py
File metadata and controls
37 lines (34 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import psutil
import wmi
import os
import smtplib
import socket
from commands import *
#Willkommensnachricht
while True:
print ("")
print ("")
print ("")
print ("Python Monitoring")
print ("")
print ("Commands:")
print ("")
print("-h -> Zeigt die Commands an")
print("-i -> Zeigt die Infoseite an")
print("-p -> Starte einen Pingtest")
print("-r -> Starte den RAM Test")
print("-ra -> Starte den RAM Test jede 5 Sekunden")
# Commandsabfrage
commands = input("Command: ")
print
if commands == "-h":
help()
elif commands == "-i":
info()
elif commands == "-p":
ping()
elif commands == "-r":
ram()
elif commands == "-ra":
os.system("py autorun-ram.py")
sleep(1)