clearcase

Why do backticks, when used for saving command output, cause an EOF error?

醉酒当歌 提交于 2019-12-08 18:30:40
I am looping through a list of clearcase files to see if the text "Merge <-" is not part of the output of ct describe . I have tried running a while loop on this list of clearcase files then appending it to another file if it meets my desired condition. Below is the exact logic I used: 16 FILTER_LIST=cut -f1 -d'@' branchmerge_versions.txt 17 touch temp.txt 18 echo $FILTER_LIST > temp.txt 19 20 while read t; do 21 isMerged=`cleartool describe t | grep -e "Merge <-"` 22 if [[ "x$isMerged" == "x" ]]; then 23 echo "$t" >> filesToMerge.txt 24 fi 25 done < temp.txt 26 Running bash -n on the script

ClearCase.ClearTool returns No view context available error

牧云@^-^@ 提交于 2019-12-08 13:50:37
I am trying to run the following code, but the got #error 1 at startview command, and #error 2 in desc command. use Win32::OLE; $ct = Win32::OLE->new('ClearCase.ClearTool') or die "Could not create ClearTool object\n"; $view = "ccadm01_UARK_DEV"; $output = $ct->CmdExec("pwv") or die("Cleartool returned error: ", Win32::OLE->LastError(), "\n"); print ("pwv \$output = $output\n"); # error 1 : cleartool return error 0 $output = $ct->CmdExec("startview ccadm01_UARK_DEV") or die("Cleartool returned error: ", Win32::OLE->LastError(), "\n"); $CWD = $view_dir; print( "Current directory: $CWD\n"); #

what is the impact of obsolete baseline in UCM?

偶尔善良 提交于 2019-12-08 12:54:28
when baselines are obsolete will it have any ill-effect? For example if the baseline was already rebased by many, if i obsolete the baseline what will happen? You can, but shouldn't obsolete a baseline which is currently used as a foundation baseline on an existing stream. Even if it is possible, it used to have some side-effects like: stopping other baselines from being seen by the " lsbl " command ( swg1IC42113 , fixed in ClearCase 7.0.x). not showing the Baselines when foundation baseline is locked or obsolete ( ss , fixed in ClearCase 7.0.x). (older ClearCase like 2003 could have an issue

Maximum numbers of users in CLEARCASE_PRIMARY_GROUP?

梦想与她 提交于 2019-12-08 09:16:17
问题 Is there any limit to add users in CLEARCASE_PRIMARY_GROUP ? In Unix/Linux, you can add only up to 32. Is there any limit on this in windows ClearCase? 回答1: According to this IBM article: ClearCase does enforce a limitation on the number of ClearCase groups a user may belong to. The SUNRPC protocol that we use can process a maximum of 32 groups on Windows and 16 groups on Unix. This means that users in an all Windows environment can have a maximum of 32 groups that can use ClearCase and 16

How to move views from a ClearCase registry to a new ClearCase registry

喜夏-厌秋 提交于 2019-12-08 09:01:10
问题 I have only one ClearCase registry. But I need to create another one in order to enhance the security. Unregister the vob and register it in the new registry is easy, but how can I move all the views?? I'm talking about two thousand views. So, I need a mechanism to move ALL the views of one vob to a new registry. Is it possible? 回答1: Basically, you need to have a script which would: rmtag unregister mktag register again (from rgy_admin:) But that would render the views inoperable: the users

Changing version of a web view using Clearcase rcleartool

坚强是说给别人听的谎言 提交于 2019-12-08 08:59:16
问题 I'm using the rcleartool version that comes with Clearteam Explorer 8.0.0 Running rcleartool -ver gives: C:\Program Files (x86)\IBM\IMShared\plugins\com.ibm.rational.ccrc.cli_8.0.0.v20140305_0215 I can't change my Clearteam Explorer version, but could use a different rcleartool version if it would work. I want to be able to update my entire Web view to a chosen label or version from the command-line. I see that "update -add" allows you to change the load rules, but as far as I can tell doesn

ClearCase [cleartool] commands error messages and error handling

落爺英雄遲暮 提交于 2019-12-08 08:46:58
问题 I'm writing a program that automates some frequently used actions in my development area, this tasks involve running cleartool commands from a shell script (by java runtime). is there any documentation to cleartool/clearcase commands error messages/exit values and causes? i would like to parse the process output and handle issues/return a response based on that. is there an easier way to combine java and clearcase than executing shell scripts from the java runtime ? i could not find any

I have ant script which works for clearcase. Can any one help me to convert it to GIT

こ雲淡風輕ζ 提交于 2019-12-08 08:45:22
问题 I am migrating one application from clear case to GIT. A build script is written to increment build number and it is written with respect to clear case. And now I have to make it work for GIT. Anyone kindly help me to modify below code to make it work for GIT. I have changed the executable path to GIT.exe. So I just help to convert clear case commands to GIT. <target name="decBuildNo"> <trycatch property="exception"> <try> <exec dir="${basedir}\calcBuild" executable="${cleartool}" failonerror

How do delete a file in ClearCase UCM?

拥有回忆 提交于 2019-12-08 08:37:05
问题 I'm trying to delete a single version-controlled file in ClearCase. I already know that I'm supposed to check out the parent directory and its checked out. I don't know if I'm supposed to check out the file I going to delete. If I don't check out the file I get the error: cleartool: Error: Not a vob object: "MyFileName". If I do check out the file I get: cleartool: Error: Element "MyFileName" has checkouts. So ClearCase knows it's one of its files – but it doesn't want to delete it. I'm just

Need script/utility to label MOST, if not all, ClearCase elements for a given path

…衆ロ難τιáo~ 提交于 2019-12-08 08:34:34
问题 I found out that labels must be applied starting at the VOB if you want to successfully recreate a specific code (label) release. I thought you wouldn't have to start at the VOB name but you do :-( My VOB has many programs in it. For example: VOBname\programs\Java\Program1\files... VOBname\programs\Java\Program2\files... VOBname\programs\VB\Program1\files... VOBname\programs\VB\Program2\files... What I would like to do is have a script or program that takes two parameters, a path and label,