diff options
author | abhibeckert <abhi@abhibeckert.com> | 2008-04-04 11:37:36 +0000 |
---|---|---|
committer | abhibeckert <abhi@abhibeckert.com> | 2008-04-04 11:37:36 +0000 |
commit | 0f586da34dac2c764a12055158e4929cf69340a1 (patch) | |
tree | bca3868c9715a10c08017a0a7b6d5148f8bd3556 /askForPass.sh | |
parent | 5fb284b7c12887b8eea6c3a02fa83abf50793992 (diff) | |
download | sequelpro-0f586da34dac2c764a12055158e4929cf69340a1.tar.gz sequelpro-0f586da34dac2c764a12055158e4929cf69340a1.tar.bz2 sequelpro-0f586da34dac2c764a12055158e4929cf69340a1.zip |
Initial import from (slightly modified) CocoaMySQL v0.7b4
Diffstat (limited to 'askForPass.sh')
-rwxr-xr-x | askForPass.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/askForPass.sh b/askForPass.sh new file mode 100755 index 00000000..b7ee81a7 --- /dev/null +++ b/askForPass.sh @@ -0,0 +1,12 @@ +#!/bin/sh +PF=$* +UUID=`uuidgen` +mkfifo /tmp/$UUID +SCRIPT=`echo tell application \"CocoaMySQL\" 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 |