Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cat file
- OFFLINE
- OFFLINE
- OFFLINE
- OFFLINE
- while read -r output;
- do
- STATE=$(echo $output)
- if [ $STATE == "OFFLINE" ]; then
- echo "CRITICAL: STATE is $STATE"
- exit 2
- else
- echo "OK " > /dev/null
- fi
- done< <( cat file )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement