Created
May 9, 2012 08:51
-
-
Save kinkerl/2643101 to your computer and use it in GitHub Desktop.
mosh failover to regular shell, took from https://github.com/keithw/mosh/issues/232
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mosh "$@" | |
[ $? -eq 5 ] && ssh "$@" |
that may be fine as well. i was getting 5 if the server only knows ssh and i only wanted to use ssh in this case.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why a return code of 5? I'm getting 127
How about anything greater than 0?