[Gambas-user] Gambas and scp/rsync
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"
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://
solution was to move ssh/gpg-agent launching in ~/.profile file and everything
voilà, and let's hope that could help someone else :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: This is a digitally signed message part.
More information about the User