[Tutor] sftp using subprocess
David Rock
david at graniteweb.com
Tue Dec 4 16:44:45 EST 2018
> On Dec 4, 2018, at 15:37, Alan Gauld via Tutor <tutor at python.org> wrote:
>
> On 04/12/2018 18:30, David Rock wrote:
>> you MUST stop trying to use batch mode, because it will never work.
>
> But you could presumably use interactive mode via Popen
> by taking control of the stdin/out pipes.
>
> But then you are basically re writing expect!
Right. and what’s worse, sftp doesn’t like here documents (by design, for fairly obvious reasons). The best option (if it’s possible) really is setting up ssh key authentication.
—
David Rock
david at graniteweb.com
More information about the Tutor
mailing list