sorry if pexpect already provides similar implementation: expect has a feature like this,
interact timeout 60 {
send " "
}
which send out a space every 60sec. it'd be nice if expect so that we can run a pexpect script to achieve anti-idle.
it'd be nicer if that interval can be implemented as a variable. but this is not very as much needed as the basic feature.
thanks.