I haven't played with the Expect module as Atcroft suggests so it may be a better solution than what I pose here. But you can probably do this using open2 or open3 on a *nix system. That will return a filehandle for the other processes STDIN and STDOUT (and STDERR with open3). These you could use select on (IO::Select for your own sanity) and then when it is ready for writing, send it your expected response. This is untested, but a filehandle is a filehandle, right? So it should work.
But if you are really doing this to make directories, do a mkdir like Atcroft suggests, please. :)
Good luck,
{NULE}
--
http://www.nule.org
In reply to Re: Posing Question
by {NULE}
in thread Posing Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |