
vrdas
New User
Jan 25, 2006, 8:22 AM
Post #1 of 2
(509 views)
|
|
scripting help
|
Can't Post
|
|
Hi... Any solution for the below problem? Is there a way to set a view "cleartool setview" or "cleartool startview" from a shell/perl script and execute clearcase commands in the view context. See the contents of ab.ksh : ------------------------------------- 1. cleartool setview myview 2. cleartool pwv 3. echo "hello" -------------------------------------- Once I execute ab.ksh, the command in line 1 will get executed and a blank prompt will come. If I "exit" from the blank prompt, it will execute lines 2 and 3. The moment I "exit" from the blank prompt, ab.ksh is out of view context and the 2nd command gives the below output: --------------------------------------------------- Working directory view: ** NONE ** Set view: ** NONE ** hello --------------------------------------------------- but I need the output as below --------------------------------------------------- Working directory view: ** NONE ** Set view: myview hello --------------------------------------------------- Your suggestions will be highly appreciated? Thanks and regards, Vinod
|