Advertisement
tobast

[bash] ircdist

Oct 20th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. SERV="sas.ens"
  4. COMMAND="irc"
  5.  
  6. /usr/bin/false # Forces $? != 0
  7.  
  8. while (( $? != 0 )); do # ssh hung
  9.     ssh -o ServerAliveInterval=10 -t "$SERV" "$COMMAND"
  10. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement