I should say, yes, my commands are kind of terribly interactive. I need to check the results of the one command and determine what command need to input next. (Like Expect, but I can't use Expect, since our environment doesn't have make gcc installed which required by IO::Pty).