Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- exit=0
- # if ssh root@spottedcow-sms.us.cray.com "lsmod | grep 'lnet'"; then
- if "find . -name 'fruit.txt' | grep 'Apple'"; then
- echo "Success!"
- exit $?
- else
- exit=$?
- echo "Exit = $exit"
- if [ $exit -ne 0 ]; then
- if [ $exit -eq 255 ]; then
- echo "SSH error, exit=$exit"
- exit $exit
- fi
- if [ $exit -eq 1 ]; then
- echo "Can't find Apple, exit=$exit"
- exit $exit
- fi
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement