Here's the Expect script -- no CVS access right now, but will add it ASAP...
Expect script that simulates a user logging in
Log in to post a comment.
Expect script that simulates a user logging in