Skip to content

Instantly share code, notes, and snippets.

@chernjie
Created March 8, 2016 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chernjie/63df9a1c6f8e74d01849 to your computer and use it in GitHub Desktop.
Save chernjie/63df9a1c6f8e74d01849 to your computer and use it in GitHub Desktop.
ssh script to overwrite ignoring of mutex on SequelPro > v1.1.0
#!/usr/bin/env bash
_log () {
echo $(date) $@ >> /var/log/sequelpro.log
}
for i do
case "$i"
in
-L\ *)
_log L "$1"
larg="$1"
shift
;;
-v|-N)
_log sflags "$1"
sflags="${i#-}$sflags";
shift
;;
--)
shift
break
;;
-?)
_log ignore1 "$i"
shift
;;
-*)
_log ignore* "$1"
shift
;;
*)
_log 'star' "$i"
_sshhosts="$_sshhosts $i"
shift
;;
esac
done
exec /usr/bin/ssh "$larg" -"$sflags" $_sshhosts
@chernjie
Copy link
Author

chernjie commented Mar 8, 2016

  1. Go to SequelPro > Preferences > Network tab
  2. Update SSH Client to point to the above SSH script
    image
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment