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!