-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.py
More file actions
34 lines (27 loc) · 700 Bytes
/
commands.py
File metadata and controls
34 lines (27 loc) · 700 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
#!/usr/bin/env python
# encoding: utf-8
import psutil
#import wmi
import os
import smtplib
import socket
from commands import *
from datetime import datetime
# Zeit Definieren
now = datetime.now()
year = now.strftime("%Y")
month = now.strftime("%m")
day = now.strftime("%d")
time = now.strftime("%H:%M:%S")
date_time = now.strftime("%m/%d/%Y, %H:%M:%S")
date_time_log = now.strftime("%m-%d-%Y-%H-%M-%S")
def info():
print("")
print("")
print("Code von: Felix, Malte und Nagehan")
print("GitLab Link: https://gitlab.realtox.network/itech-bs14/usermanagement")
print("")
print("Ram Usage: " + str(psutil.virtual_memory()[2]) + "%")
print("")
print("")
return