summaryrefslogtreecommitdiff
path: root/monitor/josef_experimental.py
diff options
context:
space:
mode:
authorjosef <josef.gson@gmail.com>2015-12-08 10:50:52 +0100
committerjosef <josef.gson@gmail.com>2015-12-08 10:50:52 +0100
commita932cff9da3cf794d84fcc884b2fac189f1bd96d (patch)
treeb3b02b633cedd68cfe95a6f669e9491cb40d5bf8 /monitor/josef_experimental.py
parent53fc45dfe6befeb85ba1f400e89d1d950321729b (diff)
reworking logging, testing failure
Diffstat (limited to 'monitor/josef_experimental.py')
-rwxr-xr-xmonitor/josef_experimental.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/monitor/josef_experimental.py b/monitor/josef_experimental.py
index b3acf1c..b40219f 100755
--- a/monitor/josef_experimental.py
+++ b/monitor/josef_experimental.py
@@ -172,20 +172,17 @@ def parse_entry(e, idx, log):
import subprocess
def email(s):
for addr in EMAIL_ADDR:
- # command = 'echo "' + s + '" | mail -s "' + EMAIL_SUBJECT + '" ' + addr
- # os.system("bash -c '" + command + "'")
p = subprocess.Popen(
["mail", "-s", EMAIL_SUBJECT, addr],
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
p.communicate(s)
- # print parsed
if __name__ == '__main__':
# Test email
- if True:
+ if False:
email("this is an automated test...")