Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- is this correct?
- line_count=$(wc -l < "$IN")
- if [ "$line_count" -gt "100" ]; then
- echo "Very slow requests (>10s) from $LOG" | mail -s "Very Slow Requests: $INSTANCE@`hostname`, `date`" my@email.com
- else
- mail -s "Very Slow Requests: $INSTANCE@`hostname`, `date`" my@email.com < "$IN"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement