in reply to How to use Perl install software?
For UNIX, I'm not sure, but I just noticed X11::GuiTest.
update: for automating console programs, some people seem to like Expect.