Redhat linux
I am spawning a child process which is a shell script that updates system time. I have a timeout of 30 minutes in expect like below. My child process updates system time to 4 hours ahead along with other commands. When I execute these below lines I get a result of 1.
child = pexpect.spawn('/bin/bash',['-c',options.cmd])
result = child.expect([pexpect.EOF,pexpect.TIMEOUT],timeout=cmd_timeout)
How can I make pexpect to use a true timer to timeout?