Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- while [ true ]; do
- X=`date`
- Y=`wget -q -O health http://localhost:9000/health && cat health`
- Z=`ps aux | grep java | grep -v jmx | head -1 | awk '{print $1}'`
- printf '%s %s %s\n' "$X" "$Y" "$Z"
- sleep 3
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement