All Questions
23 questions
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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
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 ~ /...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 $...
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 ...
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}'`
...
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 ...
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 ...
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 ...