[Tutor] REG : Pexpect timeout issue
Alan Gauld
alan.gauld at yahoo.co.uk
Sat Sep 1 15:33:35 EDT 2018
On 01/09/18 12:41, krishna chaitanya via Tutor wrote:
> Below is my code, i am frequently hitting timeout issue to login to linux or router.
Have you tried extending the timeout?
> child = spawn('su xxxxx',timeout = 50)
What is the timeout interval? If its in milliseconds
then 50 is much too short, try 5000.
If its in seconds then you have a problem...
How long does it take to connect manually using ssh?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list