in reply to Re^4: Send Bash Command
in thread Send Bash Command

What do you mean waiting for an input? Did it spawn a shell prompt?

Replies are listed 'Best First'.
Re^6: Send Bash Command
by ikegami (Patriarch) on Mar 03, 2010 at 04:00 UTC

    Yes.

    By the way, $|=1; won't affect IN, just the currently selected handle (STDOUT). The easiest way to turn on autoflushing for another handle is

    use IO::Handle; IN->autoflush(1);

    But what about buffering in the other direction. Unfortunately, you can't really control any buffering the child might do to its output. If you need interactivity, you should have better luck with Expect since it uses ptys to communicate with the child, and that usually causes the child to avoid buffering.

Re^6: Send Bash Command
by Anonymous Monk on Mar 03, 2010 at 08:04 UTC
    bash is a shell, so when you launch bash, you get shell prompt