Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SERV="sas.ens"
- COMMAND="irc"
- /usr/bin/false # Forces $? != 0
- while (( $? != 0 )); do # ssh hung
- ssh -o ServerAliveInterval=10 -t "$SERV" "$COMMAND"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement