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
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor