need2lease has asked for the wisdom of the Perl Monks concerning the following question:
On my server, there is a third party script that allows you to enter a console based application. Such as executing it:
Will result in a command based prompt that I can send directives to in order to be executed:> third_party_app <name_of_process_to_direct_to>
What I want to do is automate this with a PERL script so that no user interaction is needed.SEND> do this; OUTPUT> Process Completed
I have tried OPEN, and although the information I "print" is excepted, the output I redirect to returns a GLOB which bears no meaning to me. I need the output to see if I can move on and that the command I sent was received and processed.
I have also tried EXEC and SYSTEM, but that only leads me to have to type in the command myself again as the PRINT function will not do anything and is awaiting me to type something in.
Again - all new to this, but any ideas would be greatly appreciated.
Thanks,
KS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending and receiving output to a console based application
by Corion (Patriarch) on Sep 07, 2018 at 14:57 UTC | |
|
Re: Sending and receiving output to a console based application
by need2lease (Initiate) on Sep 07, 2018 at 15:02 UTC |