Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
kpetersn
aliveNotifier
Commits
952c1cb1
Commit
952c1cb1
authored
Feb 16, 2018
by
kpetersn
Browse files
Make linux email notifications the default (2014-12-17)
parent
4e92896b
Changes
1
Hide whitespace changes
Inline
Side-by-side
an.py
View file @
952c1cb1
#!/
usr
/bin/
env
python
#!/
APSshare/epd/rh6-x86_64
/bin/python
# TODO:
# Allow engineer to be passed as an argument
...
...
@@ -16,7 +16,7 @@ import sys
engineer
=
"Peterson"
# period should match cron job period
period
=
60
period
=
60
0
# needed for notifyOSX()
osx_command
=
"/Users/kpetersn/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier"
...
...
@@ -45,8 +45,8 @@ def notifyCombo(ioc, state, time_str):
# set notification function
#!notify = notifyConsole
#!
notify = notifyEmail
notify
=
notifyOSX
notify
=
notifyEmail
#!
notify = notifyOSX
#!notify = notifyCombo
##########################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment