How to interact with a bash script?

5 visualizaciones (últimos 30 días)
Dave Ramish
Dave Ramish el 4 de Ag. de 2011
Thanks very much in advance for your help!
I want my matlab code to interact with a bash script. right now, i enter:
!sh scriptname.sh
and then the script loads and waits for a user response, and i can't go back to matlab without exiting the script. ideally, i want matlab to be able to interact with the script -- receive inputs from the script and send outputs to the script in a continual back-and-forth way, where each sort of waits for the other's response, then determines its own response and sends it back.
any ideas how this might be possible? thanks again!

Respuestas (1)

Walter Roberson
Walter Roberson el 4 de Ag. de 2011

Categorías

Más información sobre Programming Utilities en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by