if you are using system V based (like Solaris), you should be able to type script <filename>, then everything you type gets re-directed to that file.been awhile since I wrote an expect script....