diff options
author | abhibeckert <abhi@abhibeckert.com> | 2008-09-29 09:49:36 +0000 |
---|---|---|
committer | abhibeckert <abhi@abhibeckert.com> | 2008-09-29 09:49:36 +0000 |
commit | 8b39f25ee75d7db1eff68aaa71b92d3282e4c054 (patch) | |
tree | 75e5fd2f66210a5d7170f92c40903fe9fe1c5b57 /trunk/askForPass.sh | |
parent | c0e7a42a5deba6b1529db959411a416ab114edba (diff) | |
download | sequelpro-8b39f25ee75d7db1eff68aaa71b92d3282e4c054.tar.gz sequelpro-8b39f25ee75d7db1eff68aaa71b92d3282e4c054.tar.bz2 sequelpro-8b39f25ee75d7db1eff68aaa71b92d3282e4c054.zip |
tag release candidate 2 of 0.9.2 releaserelease-0.9.2
Diffstat (limited to 'trunk/askForPass.sh')
-rwxr-xr-x | trunk/askForPass.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/trunk/askForPass.sh b/trunk/askForPass.sh new file mode 100755 index 00000000..9dc68933 --- /dev/null +++ b/trunk/askForPass.sh @@ -0,0 +1,12 @@ +#!/bin/sh +PF=$* +UUID=`uuidgen` +mkfifo /tmp/$UUID +SCRIPT=`echo tell application \"Sequel Pro\" to authenticate tunnel \"$TUNNEL_NAME\" query phrase \"$PF\" fifo \"/tmp/$UUID\"` +echo $SCRIPT > /tmp/test +#PASS=`osascript -e "$SCRIPT"`; +osascript -e "$SCRIPT" > /dev/null 2>&1 +#echo $PASS; +PASS=`cat /tmp/$UUID` +echo $PASS +rm -f /tmp/$UUID
\ No newline at end of file |