arun11299 / cpp-subprocess

Subprocessing with modern C++
Other
449 stars 90 forks source link

How to communicate with interactive shell script? #102

Open Terry1218 opened 4 months ago

Terry1218 commented 4 months ago

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!

arun11299 commented 2 weeks ago

@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.