[Gambas-user] Gambas and scp/rsync
Laurent Carlier
lordheavym at gmail.com
Sat Nov 23 12:02:01 CET 2019
Le jeudi 21 novembre 2019, 18:42:12 CET Laurent Carlier a écrit :
> Does anyboy add a success story with gambas and command like scp or rsync
> (with ssh) ?
>
> Because it 's stuck in a "waiting loop" here:
>
> example with 'rsync -aze ssh &1 &2' or 'scp -r &1 &2' executed with
> Shell hCommand With hLangEnv Wait For Read Write As "Command"
>
> Thanks.
Problem solved.
ssh password is provided by gpg-agent and was defined in .bashrc
Gambas3 uses a true shell, sh (default behavior) and in this case, it doesn't
execute .bashrc file - so when rsync/scp asked for the ssh password they were
stuck in an infinite loop (SSH_AUTH_SOCK, ... were undefined).
After checking default behavior of bash session and startup files (see https://
www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html), the
solution was to move ssh/gpg-agent launching in ~/.profile file and everything
is solved.
voilà, and let's hope that could help someone else :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191123/f9ba5294/attachment.sig>
More information about the User
mailing list