Hi Ryan, The sshfs GUI simply calls sshfs-static with an environment variable SSH_ASKPASS set to the path of an executable. This executable must prompt for a password and output the result to stdout (try running sshfs.app/Contents/Resources/askpass from the command line).
So you might be able to achieve what you want by running something like DISPLAY=":0.0" SSH_ASKPASS="echo -n thepassword" sshfs-static server:path /Volumes/mountpoint This only works if there is no terminal associated with the process, so I haven't tested it. The DISPLAY environment variable must be set, but unless you're using X11 for your SSH_ASKPASS program it doesn't really matter what it's set to. Best wishes, Hamish On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello everyone > > Here I have an interesting challenge for anyone who could help me out. > > We use a utility for mounting network volumes on our computers here, > which is written in AppleScript Studio. This allows users to set > favourites, have them automatically mount when logging in, and save > passwords in their keychain to save typing them each time. > > Now I was hoping to plugin this into the 'sshfs-static' binary, but I > have been unable to do so. Since I'm not an Objective-C developer, > looking at the source code for the unsupported SSHFS application > hasn't really helped me see how that GUI interfaces with the command > line 'sshfs-static' binary. > > What I'm looking for is for anyone who could help me replace the bit > in the Obj-C code that gets the password and sends it to sshfs-static, > with a simpler method that takes an argument from my AppleScript App. > > Sorry if I'm not explaining myself very well, but I'm getting a bit > lost in all the code and really need to be able to crack this if > possible! > > Thanks for any advice. > Ryan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "macfuse-devel" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse-devel?hl=en -~----------~----~----~----~------~----~------~--~---
