aboutsummaryrefslogtreecommitdiff
path: root/file.py
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-09-28 19:30:41 +0200
committerneodarz <neodarz@neodarz.net>2019-09-28 19:30:41 +0200
commitd70390197ee3e06ee1fecbc14d1ed48ba4040c94 (patch)
tree325267c8d64ed2d7282d1d3166b0a651b9594ddc /file.py
downloadpykeepalive-master.tar.xz
pykeepalive-master.zip
Initial commitHEADmaster
Diffstat (limited to 'file.py')
-rw-r--r--file.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/file.py b/file.py
new file mode 100644
index 0000000..efad937
--- /dev/null
+++ b/file.py
@@ -0,0 +1,8 @@
+#/bin/python3
+
+from config import *
+import commands
+
+def log_write(status):
+ with open(LOG_PATH_FILE, 'a') as f:
+ f.write("{} {}\n".format(commands.date(), status))