Re: [Tutor] REG : Pexpect timeout issue

2018-09-01 Thread Cameron Simpson
On 02Sep2018 14:29, Steven D'Aprano wrote: On Sun, Sep 02, 2018 at 10:01:02AM +1000, Cameron Simpson wrote: On 02Sep2018 00:31, Steven D'Aprano wrote: >On Sat, Sep 01, 2018 at 11:41:42AM +, krishna chaitanya via Tutor >wrote: >>Below is my code, i am frequently hitting timeout issue to

Re: [Tutor] REG : Pexpect timeout issue

2018-09-01 Thread Steven D'Aprano
On Sun, Sep 02, 2018 at 10:01:02AM +1000, Cameron Simpson wrote: > On 02Sep2018 00:31, Steven D'Aprano wrote: > >On Sat, Sep 01, 2018 at 11:41:42AM +, krishna chaitanya via Tutor > >wrote: > >>Below is my code, i am frequently hitting timeout issue to login to linux > >>or router. > > >

Re: [Tutor] REG : Pexpect timeout issue

2018-09-01 Thread Cameron Simpson
On 02Sep2018 00:31, Steven D'Aprano wrote: On Sat, Sep 01, 2018 at 11:41:42AM +, krishna chaitanya via Tutor wrote: Below is my code, i am frequently hitting timeout issue to login to linux or router. Timeout issues are a network problem. Perhaps your network is too busy, or the cable is

Re: [Tutor] REG : Pexpect timeout issue

2018-09-01 Thread Cameron Simpson
On 01Sep2018 20:33, Alan Gauld wrote: On 01/09/18 12:41, krishna chaitanya via Tutor wrote: child = spawn('su x',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

Re: [Tutor] REG : Pexpect timeout issue

2018-09-01 Thread Alan Gauld via Tutor
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 x',timeout = 50) What is the timeout interval? If its in milliseconds then 50 is much

Re: [Tutor] REG : Pexpect timeout issue

2018-09-01 Thread Steven D'Aprano
On Sat, Sep 01, 2018 at 11:41:42AM +, krishna chaitanya via Tutor wrote: > Hi Team, > Below is my code, i am frequently hitting timeout issue to login to linux or > router. Timeout issues are a network problem. Perhaps your network is too busy, or the cable is faulty, or your router is