in reply to interacting with background shell

You can do this from perl. The main "problem" will be how interactive the program is. If you only want to pass input to the program and don't care about it's output, you can use standard open():
open CMD,"|/some/command >/dev/null" or die "Can't fork command: $!"; # ... print CMD "line of input\n"; # ... close CMD;
If you need both to control both input and output, there's IPC::Open2 and IPC::Open3, but those require you to be very careful about deadlocks.

Some people like the Expect module. Never used it myself, though.

Replies are listed 'Best First'.
Re^2: interacting with background shell
by GuidoFubini (Acolyte) on Jun 14, 2006 at 18:38 UTC
    That pipe in the open command was the missing magic I needed- thanks, Joost!
    I suppose this is a case where perldoc might have helped prevent an obvious question, though. =]