ClearCase将触发器脚本移动到另一个位置 [英] ClearCase moving triggers scripts to another location

查看:67
本文介绍了ClearCase将触发器脚本移动到另一个位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在Linux和Windows上将触发器的脚本从一台服务器移动到另一台服务器.据我所知,我必须在 -replace 参数中使用 ct mktrtype 命令,我在IBM网站上读到了我必须使用与以下命令相同的命令:用于创建这些触发器.我如何识别使用的命令.这是我的触发器的一部分:

I have to move the trigger's scripts from one server to another, on both linux and windows. As far as i know i have to use the ct mktrtype command with the -replace parameter, I've read on IBM web site that i have to use the same command that was used to create those triggers. How can i identify the command that was used. Here is part of my triggers:

trigger type "REMOVE_EMPTY_BRANCH"
 2007-11-27T15:29:00+02:00 by vobadm.ccusers@tlv-vob2
  "Automatically remove empty branches"
  owner: ARRS\vobadm
  group: ARRS\ccusers
  all element trigger
  post-operation rmbranch, rmver, uncheckout
  action: -execunix /usr/bin/perl -I /tlv-vob2/triggers/lib /tlv-vob2/triggers/rm_empty_branch.pl
  action: -execwin \\tlv-vob2\perl\bin\perl -I \\tlv-vob2\perl\lib -I \\tlv-vob2\triggers\lib \\tlv-vob2\triggers\rm_empty
_branch.pl
trigger type "RESTRICT_BASELINE_OPS"
 2007-11-28T13:20:20+02:00 by vobadm.ccusers@tlv-vob2
  "Restrict normal users from creating baselines, unless they are performing a rebase or deliver"
  owner: ARRS\vobadm
  group: ARRS\ccusers
  all UCM object trigger
  pre-operation mkbl, chbl, rmbl
  action: -execunix /usr/bin/perl -I /tlv-vob2/triggers/lib /tlv-vob2/triggers/mkbl_pre.pl
  action: -execwin \\tlv-vob2\perl\bin\perl -I \\tlv-vob2\perl\lib -I \\tlv-vob2\triggers\lib \\tlv-vob2\triggers\mkbl_pre
.pl
  excluded users: vobadm,amason,builder
trigger type "UNCO_POST"
 2007-11-27T15:29:00+02:00 by vobadm.ccusers@tlv-vob2
  "Safely remove empty branches on uncheckout"
  owner: ARRS\vobadm
  group: ARRS\ccusers
  all element trigger
  post-operation uncheckout
  action: -execunix /usr/bin/perl -I /tlv-vob2/triggers/lib /tlv-vob2/triggers/unco_post.pl
  action: -execwin \\tlv-vob2\perl\bin\perl -I \\tlv-vob2\perl\lib -I \\tlv-vob2\triggers\lib \\tlv-vob2\triggers\unco_pos
t.pl

我需要将触发器移动到以下路径:Windows:\ poseidon01 \ clearcase \ triggers,\ poseidon01 \ clearcase \ perlUNIX://tlv-vob3/triggers///usr/bin/perl

I need to move the triggers to this path: Windows: \poseidon01\clearcase\triggers, \poseidon01\clearcase\perl UNIX: //tlv-vob3/triggers ///usr/bin/perl

推荐答案

应该是某些东西(来自这个较旧的示例)

It should be something (from cleartool mktrtype man page and this older example)

cleartool mktrtype -replace -element -all -postop rmbranch,rmver,uncheckout -execwin <windows_path> -execunix <unix_path> "REMOVE_EMPTY_BRANCH"

这篇关于ClearCase将触发器脚本移动到另一个位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆