in reply to Password Verification
I've gotta agree on Expect here. Besides stuff like this, expect works very well to hack together common things. A month ago I'd have said SSH, but now we have an SSH module. If you want to automate anything on the console Expect is the way to do it and I thoroughly recommend the O'Reilly on it as it has many well written examples and worth the money.