I'm asking on behalf of a coworker so forgive me if I'm light on some details.
Simply said, backticking to execute a command line program. And it hangs. It hangs, because if you had executed this program yourself from the command line it would have thrown up a prompt and asked for some input.
This input cannot be sent to the program as a command line argument.
So, two questions....
1) Is there a way to read this prompt?
2) Is there a way to write to this prompt?
I'm stumped... I figure it's all just streams of stdin and stdout, but once the command line program starts, the perl code stops running, so I'm not sure where to go.
Thanks,
Rob
Simply said, backticking to execute a command line program. And it hangs. It hangs, because if you had executed this program yourself from the command line it would have thrown up a prompt and asked for some input.
This input cannot be sent to the program as a command line argument.
So, two questions....
1) Is there a way to read this prompt?
2) Is there a way to write to this prompt?
I'm stumped... I figure it's all just streams of stdin and stdout, but once the command line program starts, the perl code stops running, so I'm not sure where to go.
Thanks,
Rob