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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
scripting help

 



vrdas
New User

Jan 25, 2006, 8:22 AM

Post #1 of 2 (749 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


davorg
Thaumaturge / Moderator

Jan 26, 2006, 4:20 AM

Post #2 of 2 (744 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 Expect.pm.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
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