Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aliveNotifier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kpetersn
aliveNotifier
Commits
952c1cb1
Commit
952c1cb1
authored
7 years ago
by
kpetersn
Browse files
Options
Downloads
Patches
Plain Diff
Make linux email notifications the default (2014-12-17)
parent
4e92896b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
an.py
+4
-4
4 additions, 4 deletions
an.py
with
4 additions
and
4 deletions
an.py
+
4
−
4
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
##########################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment