Anyone here use Clearcase command from shell?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Anyone here use Clearcase command from shell?
# 1  
Old 10-26-2010
Anyone here use Clearcase command from shell?

I am coding a korn shell script to automate certain things. Creating a baseline is one of them where I got stuck.

I google'd and found the available options of using
Code:
mkbl

command.

Inside my script this is what I am doing:

Code:
cleartool mkbl -all <myBaselineNumber in XXX.XXX.XXX.XXX format>

It gives
Code:
cleartool: Error: Cannot determine view context.
cleartool: Error: Unable to create baselines.

When I was using lsbl in my script, i used to pass
Code:
-stream myStreamName@myPVOBName

.

But for this mkbl command, the -stream is not allowed. So, how will I make it know that I want the Baseline to be created for a particular stream?

Note: I will not be creating any views in my script because I do not need it. All I wanted to do is just
1. get the last baseline, #works
2. Increament it by 1 #works
3. Created a new baseline #does not work

Any clue/guidance, please?
# 2  
Old 10-26-2010
setview before mkbl

Code:
cleartool setview VIEW_NAME

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

clearcase,

Hi, I have two unix server. In one server clearcase is installed. I want to take files from one server to clearcase server. Could anyone help to start up this, for how to connect clearcase server from my main server. ?? Currently am having IP address of that clearcase server. Thanks in... (0 Replies)
Discussion started by: ckchelladurai
0 Replies

2. Shell Programming and Scripting

clearcase shell script

I am running all clearcase commands in shell script and every command is redirecting output to file data.txt cleartool diffbl -act -ver label1 label2 >& data.txt cleartool diffbl -baselines label1 label2 >& data.txt cleartool diffbl -elements label1 label2 >& data.txt Issues was all commands... (6 Replies)
Discussion started by: saku
6 Replies

3. Shell Programming and Scripting

shell script for clearcase ucm

how to write shell script to get the checkin information between two composite baselines in clearcase ucm . (0 Replies)
Discussion started by: saku
0 Replies

4. UNIX for Dummies Questions & Answers

Clearcase Query

Hi, Can you please help? I am trying to use variables within a clearcase command, however i am having a major problems - the variables don't appear to be accessible. Using the following as an example: cat=1 2 3 dog=4 5 6 cleartool mkattr -replace Four_Legs '"$cat $dog"' lbtype:Animal ... (3 Replies)
Discussion started by: spikey
3 Replies

5. UNIX for Dummies Questions & Answers

Korn Shell Script / Clearcase Query

Hi, I wonder can you help me ... I have the following clearcase code that works on the command line: ct mkattr -replace Four_Legs '"cat dog"' lbtype:Animal however when i try to use it in my script it fails with the following error message: + ct mkattr -replace Four_Legs "cat dog"... (5 Replies)
Discussion started by: thegant
5 Replies

6. Solaris

Clearcase compatibility with Solaris 10

Hi, Is Clearcase version 2002.05.00 is supported and compatible with Solaris10? Cheers, Ankur (1 Reply)
Discussion started by: sharmaankur85
1 Replies

7. Shell Programming and Scripting

Connect to Clearcase through Unix

Hi, How can I connect to clearcase view through Unix. I have this view r232_view in Clearcase. I tried this from my home directory >cleartool setview r232_view >cleartool: Error: View tag not found: "r232_view". Am I missing something? Thanks, (5 Replies)
Discussion started by: northwest
5 Replies

8. Shell Programming and Scripting

Clearcase set into a view with script

Hi Friends, How do i set into a view and continue with make via a script. I could do both separately but when i try both in a single script, it stops after setting into the view. below is the sample "ap_script", first two execute, but the third one command doesn't. echo $USER cleartool... (2 Replies)
Discussion started by: arunp46
2 Replies

9. Linux

RPM with ClearCase

Hello. I have a task to complete and it involves using RPM with ClearCase. I have looked through as much documentation as possible about RPM and I still have questions about it. My task is to create a .rpm using ClearCase by unzipping a 22 Mb file and placing it into a set directory structure. I... (2 Replies)
Discussion started by: mastachef
2 Replies

10. UNIX for Advanced & Expert Users

ssh + clearcase hangs

Hi, prefix: cleartool is an clearcase command. clearcase is a control version tool I have setup a passwordless ssh connection between Unix machines A and B. I am executing a ssh command from Unix box 'A' to Unix box 'B' as follows. ssh username@B 'ls /home/username' This works perfectly... (2 Replies)
Discussion started by: sunilav
2 Replies
Login or Register to Ask a Question