Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
365 views

How can I measure shell latency when the time measuring commands also get stuck?

Some background and motivation I'm working in a corporate that uses ClearCase for version control. In ClearCase, to work on a "branch" (stream) I have to enter a specific ClearCase shell ...
Shoeman's user avatar
  • 73
1 vote
1 answer
161 views

How to create view from latest stream on clear case using command

I'm currently working on a power shell script to automate the clear case tool. However, I am new to the new clear case tool. I require the clear case tool commands listed below. Create a view from ...
max's user avatar
  • 323
1 vote
2 answers
475 views

How can I add commands to be executed when setting a view?

Using cleartool, when you cleartool setview, a subshell is opened apparently (you can exit it and leave the view). I was wondering - how can I get more commands to be executed, or settings made, when ...
einpoklum's user avatar
  • 130k
1 vote
1 answer
1k views

How to get particular Clearcase file of previous versions

Right now, I have a file called config_1_2_3.xml for current track of my product . In previous track file was of version of config_1_2_2.xml. I am getting the file of version 1_2_2 by doing the below ...
Abinash's user avatar
  • 45
1 vote
1 answer
297 views

Script exits after view is set (clearcase)

I am trying to run a shell script. Inside the script, I need to set the view: ct setview viewname then run some commands. What happens is that after the view is set, the script exits. I also tried ...
MohS's user avatar
  • 23
1 vote
2 answers
294 views

Cleartool.exe multiple commands

I want to execute multiple commands in the cleartool.exe console, but ; or && doesnt work. Example: cd /myView; ct mkact myActivity Any suggestions to run this? I need to use cleartool.exe
benja tosello's user avatar
2 votes
1 answer
325 views

Using shell scripts to remove clearcase view if it exists using one liner if

I want to test if a clearcase view exists and execute the remove command only if it exists. I am trying to do it from a shell script in a Linux 6.x environment. I tried to format my conditions both ...
adbdkb's user avatar
  • 2,151
1 vote
1 answer
378 views

Using Jenkins with multiple C projects, ClearCase and shell/batch

BACKGROUND : We are working on a few C projects, and the sources are in ClearCase. Each project have his own project ClearCase. My mission consists in putting all of them into Jenkins. There is no ...
Guildias's user avatar
  • 111
0 votes
1 answer
740 views

ct: not yet implemented

In Linux when I try to run ct setview inside shell script I am getting ct: not yet implemented error but if I run same command in command line I am able to run the command. Can anyone please help me ...
Lohithraj's user avatar
1 vote
1 answer
217 views

ClearCase script - I need a list of all the component of a certain stream that still needs delivery to default

I need a list of all the component of a certain stream that still needs delivery to default
benja tosello's user avatar
1 vote
1 answer
701 views

#awk If else loop not working in ksh

I have code where awk is piped to a clearcase command where If else loop is not working. code is below : #!/bin/ksh export dst_region=$1 cleartool lsview -l | gawk -F":" \ '{ if ($0 ~ /...
user avatar
1 vote
1 answer
1k views

How can i list the recommended base line in ClearCase

I'm currently writing a script that has to check the recommended baseline of the Integration stream, so the only parameters that I know is the stream name, I'm wondering if there is a way to do that ...
Alex Brodov's user avatar
  • 3,505
1 vote
1 answer
170 views

Download files from clearcase dynamic view

i have a requirement,here i need to download some files from clearcase dynamic view to local machine programatically, so what is the possible ways we can use in that. Thanks in Advance.
RAJESHPODDER007's user avatar
1 vote
2 answers
3k views

How to exit from clearcase view and not from script?

The issue is I have to touch a particular file in a ClearCase view after touching it, I have to exit the view. And now I must reset the same view again. Now when I reset, it will open in different ...
user2811740's user avatar
2 votes
1 answer
2k views

Cannot 'cleartool setview' in a shell process opened with Perl IPC::open2

I am creating a Perl script that, among other things, sets into a ClearCase view, sources an environment, and runs synthesis tools, and finally post-processes output reports. It does that by piping to ...
Ahmed Nassar's user avatar
  • 4,793
5 votes
1 answer
2k views

Executing an Expect script from different locations

I am trying to run my Expect script from two different locations and it will work with the following Expect executables referenced: My linux home directory (#!/usr/bin/expect) A clearcase view on ...
Jake88's user avatar
  • 965
2 votes
1 answer
2k views

How to find the view location in my linux home dir

I have many views in my Linux home dir under different folders mentioned below. Home CCVIEWS views Development testproject : : etc. Now i want to list all the clearcase views in my ...
user1206219's user avatar
1 vote
3 answers
315 views

search the output line and save in variable

How to search word of the output of a shell script and save in other variable . Below command will display the list of baselines in my view . cmd :cleartool lsstream -fmt "%[found_bls]NXp\n" -view $...
user1206219's user avatar
1 vote
1 answer
517 views

How can a Dynamic View be accessed in Hudson from a KornShell script?

Using a Clearcase Dynamic view, Hudson's job log shows cleartool's lsview, startview and lshistory commands are all successful. However, the subsequent build script (SunOS KornShell (ksh)) fails to ...
belwood's user avatar
  • 3,729
2 votes
4 answers
1k views

recursive listing of directories

I have the below code which has to do a recursive listing of all the files and directories. I am not sure if it is working fine. #!/usr/bin/sh recur_fun() { for i in `ls -ltr | awk '{print $9}'` ...
randeepsp's user avatar
  • 3,842
1 vote
1 answer
671 views

clearcase: Backup for only modified checked-out elements in all views

Having a regular size-efficient backup for only the modified checkedout elements in all views would be a great thing for us, since a great deal of the defined dynamic/snapshot views cannot be included ...
FJCS__montecoruto's user avatar
2 votes
2 answers
2k views

How to get cleartool diff to return to command line while diff viewer is still open?

As described in one of the answers to SO question "Any way to use a custom diff tool with cleartool/clearcase?" I have installed WinMerge and a single diff opens fine in WinMerge based on a command of ...
talkaboutquality's user avatar
2 votes
1 answer
867 views

Clearcase Multi-file rename

I have a large number of files in a ClearCase directory structure, and I need to go through and change all "makefile" to "Makefile". I'm thinking some combination of the find . -name makefile command ...
mbyrne215's user avatar
  • 2,334