Another method to automate all kinds of interactive programs is Expect which is a TCL based tool for UNIX. Greg Adams