commit edc8a1b7cc897afef857ddb26011fce647c9e188
parent 240b7e75a33d5fad27d04c9419a50ef7835bc08e
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 24 Feb 2016 11:45:22 -0800
add comment on cron usage
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/bin/mailcheck.sh b/bin/mailcheck.sh
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
+# add to crontab with:
+# */3 * * * * ~/bin/mailcheck.sh
+
# Check every ten seconds if the process identified as $1 is still running.
# After 5 checks (~60 seconds), kill it. Return non-zero to
# indicate something was killed.