How to interact with a bash script?
조회 수: 5 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 8월 4일
This is the flip side of the issue discussed in http://www.mathworks.com/matlabcentral/answers/12913-can-i-give-matlab-commands-in-series-from-the-os-command-prompt
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Programming Utilities에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!