in reply to Best way to communicate with a shell like process?
Check Expect.pm or, if that won't do, IPC::Open3.
After Compline,Zaxo