nofear_asa has asked for the wisdom of the Perl Monks concerning the following question:
Hello All,
I have an interactive shell command, let's call it xyz. It unfortunately doesn't accept command line arguments and commands can be sent only once we enter into the xyz shell.
Is there a way to run this shell from a perl script and enter commands for it? I usually use system to call functions as though they are typed in the terminal window. But I am unable to use this for my current problem. It would be great if you are able to provide any inputs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Run an interactive shell command from Perl script
by marto (Cardinal) on Sep 26, 2018 at 21:55 UTC | |
|
Re: Run an interactive shell command from Perl script
by Laurent_R (Canon) on Sep 26, 2018 at 21:58 UTC | |
|
Re: Run an interactive shell command from Perl script
by choroba (Cardinal) on Sep 27, 2018 at 11:27 UTC | |
|
Re: Run an interactive shell command from Perl script
by zentara (Cardinal) on Sep 27, 2018 at 18:51 UTC |