Re: Changing the system clock with pexpect confuses pexpect!

2011-12-26 Thread Roy Smith
In article <1f342621-0c96-447c-ad5d-f8c9dc777...@i6g2000vbe.googlegroups.com>, Saqib Ali wrote: > I believe what is going on is that internally pexpect uses the system > clock to keep track of when it receives data from spawned processes. > When I mess with the clock, that messes up the interna

Changing the system clock with pexpect confuses pexpect!

2011-12-26 Thread Saqib Ali
See my code below. I'm controlling a shell logged in as root with pexpect. The class below has a method (startProc) which spawns a shell and keeps it alive until told to destroy it (stopProc). The other 2 methods in this class allow me to change the system clock and to get the IP Address of thi