This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
execution_time_and_notify [2011/05/11 13:45] k2patel |
execution_time_and_notify [2011/05/11 13:45] k2patel |
||
---|---|---|---|
Line 3: | Line 3: | ||
<code bash> | <code bash> | ||
- | s=`date +%s`; /usr/local/bin/php index.php ; e=`date +%s`; if [ $(( $e - $s )) -gt 10 ]; then /usr/bin/mail -s "[Degree] `hostname` Time is More then 10 second" ; fi | + | s=`date +%s`; /usr/local/bin/php index.php ; e=`date +%s`; if [ $(( $e - $s )) -gt 10 ]; |
+ | then /usr/bin/mail -s "[Degree] `hostname` Time is More then 10 second" status@k2.com ; fi | ||
</code> | </code> | ||