On 27May2019 08:22, Fc Zwtyds <fczwt...@gmail.com> wrote:
Thank you very much for your detailed answer.
I will try to learn how to capture and parse the output of "ssh-agent -s" and learn how to talk to the agent.

The output of "ssh-agent -s" is Bourne shell variable assignment syntax. You need to parse that and then install those values in so.environ before calling the second command. The subprocess module has methods for collecting the output of a command (see the communicate method).

Cheers,
Cameron Simpson <c...@cskk.id.au>
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to