Advertisement
tobast

start_remote.sh

Sep 29th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. IRC_HOST="login@server"
  4.  
  5. /usr/bin/false # Forces $? != 0
  6.  
  7. while (( $? != 0 )); do # ssh hung
  8.     ssh -o ServerAliveInterval=10 -t "${IRC_HOST}" "bash /home/irssi/start_irc.sh"
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement