Interfacing MATLAB and ClearCase
2 ビュー (過去 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!