rsync local code with a remote clearcase dynamic view

时光怂恿深爱的人放手 提交于 2020-01-13 06:22:46

问题


I want to syncrhonize a local path with a dynamic clearcase view hosted in a remote machine only accesible through ssh:

local:/me | <== ssh == | me@remote_host:/vobs/me/view_1

Those familiar with clearcase know that in order create a dynamic view you must issue the following command in the remote host 'cleartool setview view_1' where view_1 is the reference to the pre-existant tagged dynamic view, problem is that when i try to run that command with the --rsync-path option to rsync, it never comes back:

$ rsync '--rsync-path=`cleartool setview view_BAAAAAD;/usr/bin/rsync`'  
 me@remote_host:/vobs/me/view_1 .

cleartool: Error: View tag not found: "setview view_BAAAAAD"

So it seems the command is actually issued, yet when i fed the correct tag:

$ rsync '--rsync-path=`cleartool setview view_1;/usr/bin/rsync`'  
me@remote_host:/vobs/me/view_1 .

Then it never comes back, when i use the command in the remote host through ssh it doesn't ask for input (neither tty or stdin).

So i'm stuck with using static views. Any idea?

PD:

  • The actual scheme is a little bit more complicated since the ssh connection is forwarded
  • I can use static views but i'd prefer dynamic ones
  • I cannot install any daemon or script on the remote host

回答1:


in order create a dynamic view you must issue the following command in the remote host 'cleartool setview view_1' where view_1 i

No you don't.

  • You only have to start it: cleartool startview view_1
  • And you can use it in /view/view_1/vobs/avob/....

Avoid setview which creates a subshell in which the PATH might not be correct.



来源:https://stackoverflow.com/questions/15666402/rsync-local-code-with-a-remote-clearcase-dynamic-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!