|
|
Choosing A Webhost: |
RE: Automated way to disconnect/stop all running views on a client?: msg#00017version-control.clearcase.general
Sometime back I had to wite a script which was for
some other purpose, but a part of it handled what you are actually looking for.
I have pasted below those snippet of perl code which did the work work. Explore
them and try to build a perl script with this. I cannot assure it will work
straight away, as I just picked relevant sections and pasted
here
================================================
use
Win32::TieRegistry;
#*********Global
Variable********
my $mvfs_drive=undef; #***********Main*********
$Registry->Delimiter("/"); ##Syntax Check
##Get Value of MVFS drive and
##end all active views and Unmount VOBs endVOBView(GetMVFSDrive()); #***********Subroutine Section******
sub GetMVFSDrive{ $drive=$Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Mvfs/InstallParameters"} or die $!; foreach( keys %$drive ) { return $drive->{$_} if ($_=~ /\/drive/) } }
sub endVOBView{
my $mvfs_drive=shift; # Unmount all VOBS
print "Unmounting all mounted VOBs\n"; system("cleartool umount -a"); # End all active
views opendir(DIR,"$mvfs_drive:\\") or die "can't opendir $dirname: $!"; while (defined($view = readdir(DIR))) { print "Stopping $view ...\n" if ($view !~ /^\.|.specdev/); system("cleartool endview $view") if ($view !~ /^\.|.specdev/) } closedir(DIR); }
Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Automated way to disconnect/stop all running views on a client?, Joe Wildish |
|---|---|
| Next by Date: | Re: Automated way to disconnect/stop all running views on a client?, Paul N |
| Previous by Thread: | Re: Automated way to disconnect/stop all running views on a client?, Joe Wildish |
| Next by Thread: | Re: Automated way to disconnect/stop all running views on a client?, Paul N |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |