execution_time_and_notify
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
execution_time_and_notify [2011/05/11 03:52] – created k2patel | execution_time_and_notify [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Check execution time and notify if exceed ====== | ====== Check execution time and notify if exceed ====== | ||
+ | One Liner | ||
+ | |||
+ | <code bash> | ||
+ | s=`date +%s`; / | ||
+ | then / | ||
+ | </ | ||
+ | |||
+ | Script | ||
<code bash> | <code bash> | ||
Line 11: | Line 19: | ||
notify(){ | notify(){ | ||
for n in $receipients; | for n in $receipients; | ||
- | echo $1 | / | + | echo $1 | / |
done | done | ||
} | } |
execution_time_and_notify.1305085950.txt.gz · Last modified: 2020/08/10 02:28 (external edit)