On 12/4/18 2:44 PM, David Rock wrote:
>
>> On Dec 4, 2018, at 15:37, Alan Gauld via Tutor 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
> On Dec 4, 2018, at 15:37, Alan Gauld via Tutor 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
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!
--
Alan G
Author of the Learn to Program w
> On Dec 4, 2018, at 12:05, Asad wrote:
>
> Hi All ,
>
> I am not allowed to import pexcept .Therefore only option I
> have is to implement a solution using the standard libraries in python .
I’m only suggesting it because it’s an easier way to interface with expect. If
you aren’
> On Dec 4, 2018, at 02:41, Alan Gauld via Tutor wrote:
>
> On 04/12/2018 06:25, Asad wrote:
>
>> Permission denied (keyboard-interactive,publickey,password).
>> Connection closed
>>
>> Is there any other way to acheive this because I cannot import pexcept
>> module .
>
> That looks like the
On 04/12/2018 06:25, Asad wrote:
> Permission denied (keyboard-interactive,publickey,password).
> Connection closed
>
> Is there any other way to acheive this because I cannot import pexcept
> module .
That looks like the problem that David already highlighted
with sftp.
When you say you cannot
eive this because I cannot import pexcept
module .
Thanks,
>
>
> -- Forwarded message --
> From: David Rock
> To: Tutor Python
> Cc:
> Bcc:
> Date: Mon, 3 Dec 2018 18:12:05 -0600
> Subject: Re: [Tutor] sftp using subprocess
>
> > On Dec 3, 2018
On Tue, Dec 04, 2018 at 03:31:53AM +0530, Asad wrote:
> however it gives error even unable to provide password .
Is the error a secret? Would you like us to guess what it is?
--
Steve
___
Tutor maillist - Tutor@python.org
To unsubscribe or change s
> On Dec 3, 2018, at 16:01, Asad wrote:
>
> Hi All ,
>
>I am looking for a solution to automate downloading file using sftp
> process using :
>
> batch.txt :contains the following two lines
> cd 12345678
> get 12345678_1.zip
>
>
> import subprocess
> host="abc.com"
> user="sa"
> user