subprocess escaping POpen?!

Tim Golden mail at timgolden.me.uk
Thu Aug 5 10:48:53 EDT 2010


On 05/08/2010 15:38, Chris Withers wrote:
> Kushal Kumaran wrote:
>>
>> ----- Original message -----
>> > Wolfgang Rohdewald wrote:
>> > > On Donnerstag 05 August 2010, Chris Withers wrote:
>> > > > But why only the request for auth credentials?
>> > >
>> > > for security reasons I suppose - make sure a human enters
>> > > the password
>> >
>> > Well yes, but what if you actually want to script it?
>> >
>>
>> Then you use expect.
>>
>> See http://pexpect.sf.net for a python version.
>
> ...which doesn't work on Windows.

There is a winpexpect:

http://pypi.python.org/pypi/winpexpect/1.3

TJG



More information about the Python-list mailing list