[Gambas-user] Interaction With Command Shell
Nigel Verity
nigelverity at ...67...
Mon Mar 16 16:18:38 CET 2015
Hi
I would welcome some advice about interacting with the Linux command shell from within a Gambas application.
The requirement is to create a connection with a remote server using SSHFS. The general syntax for this command is:
sshfs username at ...3453...:/foldername /local-mount-folder
There is no option in the SSHFS command to include the user's password on the remote server. When running from a command prompt, once the sshfs command is accepted you are then prompted to enter the password.
Is there any way, after executing the SSHFS command (using SHELL, presumably) to monitor for the password prompt and then send the password to the command shell?
My aim is to create a dialog in which the user provides the server name, username and password and have Gambas do the rest to create the SSHFS connection.
Thanks
Nige
More information about the User
mailing list