Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. is this correct?
  2.  
  3. line_count=$(wc -l < "$IN")
  4. if [ "$line_count" -gt "100" ]; then
  5. echo "Very slow requests (>10s) from $LOG" | mail -s "Very Slow Requests: $INSTANCE@`hostname`, `date`" my@email.com
  6. else
  7. mail -s "Very Slow Requests: $INSTANCE@`hostname`, `date`" my@email.com < "$IN"
  8. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement