cpp-subprocess
cpp-subprocess copied to clipboard
How to communicate with interactive shell script?
Hi Arun, I'm trying to open a interactive shell script then send command and get response, again and again, but only firstly Popen script can get response by communicate function, after this, used opened Popen handle to 'send' msg, can't get response by communicate. Could you help share how to do this? Appreciate it!
@Terry1218 Sorry for the late reply. Can you also paste a sample code which is not working as expected ? I will take a look at it in my free time.