CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
scripting help


New User

Jan 25, 2006, 8:22 AM

Post #1 of 2 (1296 views)
scripting help Can't Post


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 **

but I need the output as below
Working directory view: ** NONE **
Set view: myview

Your suggestions will be highly appreciated?

Thanks and regards,

Thaumaturge / Moderator

Jan 26, 2006, 4:20 AM

Post #2 of 2 (1291 views)
Re: [vrdas] scripting help [In reply to] Can't Post

Perhaps you should consider a different approach, and use one of the many modules that are available to interact directly with Clearcase.

Or, if you need to stick with your original approach, there's always

Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives