I want to run the OPENSSL from MATLAB and store the command output in my workspace. My attempt is as follows:
- I installed Win32OPENSLL_Light.
- I typed the command [a, b] = system('openssl s_client -connect my.address.to');
However, when I do this, both variables a and b has nothing in them. It is probably because openssl command opens up and waits for the commands to be sent to the server. How can I get the output corresponding to individual command that I send to my.address.to when the connection is once established.
If I am not wrong, the same problem exists if I telnet to a remote address. I want the output corresponding to each command stored in a separate variable. However, the system command in MATLAB doesn't return anything for as long as the connection is open.