As a general note for solving problems like this where you want to automate the process of driving a program that only accepts input from the keyboard, give Expect a try. Expect http://expect.nist.gov/ lets you script text programs that only accept input from the keyboard. A good example of this is the passwd command, and it sounds like openssl does the same thing. Expect scripts are written in Tcl and can put nice front-ends onto otherwise inconvenient tools. I've used Expect as a back-end tool from Perl based CGI scripts to automate various tasks.

Steve

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to