Prev: new to python - trouble calling a function from another function
Next: PyInt_FromLong gives segfault on small numbers (<257)
From: Chris Withers on 5 Aug 2010 10:38 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. Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
From: Tim Golden on 5 Aug 2010 10:48 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
From: Chris Withers on 5 Aug 2010 10:49 Tim Golden wrote: >>> 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 Are the two api-identical? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk
From: Tim Golden on 5 Aug 2010 10:55 On 05/08/2010 15:49, Chris Withers wrote: > Tim Golden wrote: >>>> 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 > > Are the two api-identical? From the bitbucket page: http://bitbucket.org/geertj/winpexpect/wiki/Home """ The API of winpexpect is identical to that of pexpect. The only difference is that you must use the class "winspawn" instead of "spawn" """ TJG
From: Chris Withers on 5 Aug 2010 10:56
Tim Golden wrote: > On 05/08/2010 15:49, Chris Withers wrote: >> Tim Golden wrote: >>>>> 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 >> >> Are the two api-identical? > > From the bitbucket page: > > http://bitbucket.org/geertj/winpexpect/wiki/Home > > """ > The API of winpexpect is identical to that of pexpect. > The only difference is that you must use the class "winspawn" > instead of "spawn" ....then why aren't they in the same fs&@ing package? ;-) Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk |