使用远程Clearcase动态视图rsync本地代码 [英] rsync local code with a remote clearcase dynamic view
问题描述
我想将本地路径与仅通过ssh可访问的,在远程计算机上托管的动态clearcase视图进行同步:
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
local:/me | <== ssh == | me@remote_host:/vobs/me/view_1
熟悉clearcase的人都知道,要创建动态视图,必须在远程主机 cleartool setview中发出以下命令view_1',其中view_1是对预先标记的动态视图的引用,问题是当我尝试使用--rsync-path选项将命令运行到rsync时,它永远不会返回:
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:错误:未找到视图标记: setview view_BAAAAAD
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 .
然后它再也不会回来,当我通过ssh在远程主机中使用命令时,它不会
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:
- 实际方案要多一些由于ssh连接已转发,因此很复杂
- 我可以使用静态视图,但我更喜欢动态视图
- 我无法在该视图上安装任何守护程序或脚本远程主机
推荐答案
为了创建动态视图,您必须在远程主机 cleartool setview view_1中发出以下命令,其中view_1 i
in order create a dynamic view you must issue the following command in the remote host 'cleartool setview view_1' where view_1 i
不,您不要。
- 您只需启动它:
cleartool startview view_1
- 您可以在
/ view / view_1 / vobs / avob / ...中使用它。
- You only have to start it:
cleartool startview view_1
- And you can use it in
/view/view_1/vobs/avob/....
避免使用 setview
在其中创建子shell 路径可能不正确。
Avoid setview
which creates a subshell in which the PATH might not be correct.
这篇关于使用远程Clearcase动态视图rsync本地代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!