in reply to Interacting while in system

instead of calling system() use open (FOO, "|$program) to run the program as a subprocess. Anything you print to FOO will be sent the the stdin of $program. $program, if say a perl program can do while (<STDIN>) { &process_command($_);}
--
Jay "Yohimbe" Thorne, alpha geek for UserFriendly