Interfacing MATLAB and ClearCase
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to access 'Clearcase' via MATLAB command prompt using "!" and plink.exe. I have a set of clearcase commands in my script that I need to execute one after the other. However once the control goes to clearcase(plink) after executing first command, it does not come back to MATLAB till I end the plink session.
I want to know if there is a way using which I can run the clearcase commands via MATLAB at backend without displaying anything on MATLAB command prompt ?
I dont want to go for ClearCase Source Control integrated with MATLAB
댓글 수: 0
답변 (2개)
Gavin Walker
2012년 3월 5일
Can you provide a little more information on the type of commands that you are trying to execute? Does the "system" command help here?
>> [status,result] = system('cleartool -version')
댓글 수: 0
Walter Roberson
2012년 3월 5일
Yes there is, but it is a bit of a nuisance to program, as it involves operating-system specific operations that are not supported by MATLAB (POSIX pipe() or MS Windows _pipe()). This interface would have to be coded in a MEX routine.
The complete I/O stream for talking to the other process would have to be coded in MEX, as the MATLAB I/O streams offer no way to flush an I/O buffer and no way to pass a MATLAB I/O stream to a MEX routine (so you can't have C do it for you.)
I notice you reference plink.exe which tends to imply you are on MS Windows. In MS Windows only, if there is a DCOM / ActiveX control to ClearCase then you can use MATLAB's activex() call to open a session.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 ActiveX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!