Yum update using expect

Hi,

I have an expect script which connects to whatever Ip is passed to it. It performs a variety of tasks, all of which it completes fine except for the yum updates. For some reason it sends commands early, during the yum update. Any ideas?

Thanks.

Are the updates running under as root or administrator account that can perform the update?

Turn on debugging and take a look at the output? Only other guess I'd have is maybe python is doing strange things, or adding in some characters that are messing up your expect statement? exp_internal 1 to turn on debugging, as I recall.