Download IMS ReleaseMgr Utils - IMS ReleaseMgr Utils Description, IMS ReleaseMgr Utils Reviews
Contact
 


 

Download

 
Download Now
Perl Artistic License
Downloads till now: 6
 
 

Quick search

 



 

Rate this software

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

No. Votes

0

 

Linux

Assembler Tools , Bug Tracking , Code Generators , Compilers , Debuggers , Disassemblers , Internationalization , Interpreters , Libraries , Localization, Perl Modules , Preprocessors , Quality Assurance and Testing , UI (User Interfaces) , Version Control , Widgets ,

Windows

Mac

Mobile

Drivers

Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

IMS ReleaseMgr Utils

 

Details

Last Update: 2008-02-07 23:01:12
Version: IMS::ReleaseMgr:
License/Program Type: Perl Artistic License
Publisher: Randy J. Ray
Price:$0.00
Description:

IMS::ReleaseMgr::Utils is a collection of utility routines for rlsmgr scripts.
SYNOPSIS
use IMS::ReleaseMgr::Utils ':all';
write_log_line($filename, $text);
Several functional blocks of the different release manager scripts were identified as essentially identical. To this end, they have been gathered under the heading of "utilities" and kept here.
SUBROUTINES
The following routines are made available for explicit import. None are imported by default, so users of this package need to be specific in terms of what gets pulled in. There are three tag sets, one for signal-handling routines, one for database access and the third for accessing configuration via physical files. The tag ":all" can be used to import all routines.
write_log_line($file, $line)
Writes the specified $line (more than one may be passed in a single call) to the file specified in $file. Performs locking and unlocking, as well as proper buffer-seeking so as to allow different processes to utilize the same log file without danger of collision.
The following two routines may be brought in with the tag ":signals":
SIG_inc_trace
When assigned as a signal-handler, this routine can be used to automate the increment of trace levels. It expects a scalar $trace to exist in the MAIN:: namespace. That scalar is then incremented. The application is still responsible for associating the value of $trace with error logging and/or tracing.
SIG_dec_trace
This is a complement to the above routine. When triggered, it decrements the global scalar $trace.
The following routines may be brought in with the tag ":DBI":
DBI_mirror_specification(-mirror => $mirror)
Contacts the Oracle DBMS that stores the mirror-pool data and fetches the full specification for the requested mirror name $mirror. The return value is a hash reference, or the special value undef if there was an error.
DBI_mirror_host_list(-mirror => $mirror)
Similar to the previous routine, this call contacts the Oracle DBMS and retrieves the list of all host names that make up the pool for the specified pool $mirror. In the case of systems where there is only one host, the list is generally a single-item list containing the name of the one host. The return value is a list reference, or undef in case of error. Any of the hosts in the list that use a port other than the default HTTP port of 80, then that is appended to the hostname with a separating colon (":").
DBI_all_mirrors
Fetches all mirror specifications from the database and returns them in a hash reference whose keys are the mirror group names, and whose values are themselves hash references to the specification for the corresponding group. Returns undef on error.
DBI_all_hostlists
As above, fetches all the hostlists for all mirror groups, returning them in a hash table keyed by mirror name. Each table value is a list reference similar to what is returned by DBI_mirror_host_list
DBI_match_mirror_to_host(-mirror => $mirror, -host => $host)
In most cases, a physical hostname is not the same as the name the webserver considers itself to be. This routine matches the physical hostname $host to the correct virtual hostname in the pool for the mirror group $mirror. As an example (as of 10 July, 1999), for the mirror group www.buy.hp.com and physical host hpcc950.external.hp.com, the return value would be www2.buy.hp.com.
DBI_error
Returns the error string from the DBI interface that occurred with the most recent operation. Each of the other routines in this group sets and clears this value, so a null string is returned if the most recent operation was in fact successful.
The following routines may be brought in with the tag ":file". Each is a file-based counterpart to one of the DBI routines above, except for the fact that file-based configuration does not have access to the full database of mirror information, as is available via DBI. Thus, there are no equivalents to the "all mirrors" or "all hostlists" calls:
file_mirror_specification(-file => $file)
Read the specification data from the requested file. The value of $file should be an absolute path for safety sake, though this is not a strict requirement. Other lines may be in the file; only those lines that look to be of the form, "NAME=VALUE" are actually parsed. This allows for configuration files to include Bourne shell code and double as launch files. See examples in the /opt/ims/ahp-bin directories of hosts hpcc925.external.hp.com or hpcc950.external.hp.com for how this is currently used in production. Returns a hash reference just like the DBI counterpart. The return value is undef on error.
file_mirror_host_list(-file => $file)
Read the list of hosts that comprise a mirror pool. Returned as a list reference as the DBI counterpart does. Unlike the specification file, only comments, blank lines and data lines may be in this file. A data line has either a single hostname (such as www2.buy.hp.com) or a hostname with the physical host name of the machine in question as a second item on the line, separated by whitespace: "www2.buy.hp.com < some space > hpcc950.external.hp.com". The second value is used by the next API hook. This routine only returns the aliases. The return value is undef on error.
file_match_mirror_to_host(-file => $file, -host => $physical_host)
Using the file specified, try to determine which of a set of aliases that comprise a mirror pool match to the current physical host. This is for cases when it is necessary to find place within the mirror list of the running host. If $file has no physical host data, or insufficient, then a null return is the result. Otherwise, the relevant alias is returned.
file_error([ $text ])
All of the file_ routines set their error text via this routine, and programs using the API can retrieve it using this call. All routines clear this at the start, so that a stale message is not carried over. Any parameter present is taken to be a new value for the error message. General external use should not need to set any errors.
The remaining routines represent a miscellany of assorted functionality used by both client and server ends of the release process:
fork_as_daemon($dont_die)
Causes the running process to background itself, using a strict model as defined in the W. Richard Stevens book, "Advanced UNIX Programming". In brief: the process forks (parent exits), sets its own process group, detaches from the TTY, sets the TTY-related signals to be ignored, and forks again. It is the grandchild that eventually returns from this call.
If there is an error, the default course of action is to die, reporting the error in the process. If the routine is passed a single non-null parameter, the routine will instead return the error message as a string, and not die. The normal return code (for a successful detachment) is a null string.
send_mail($to, $subject, $body)
Sends an e-mail message to all addresses in $to (a comma-separated list). The parameter $subject is used for the message subject header. The text is presumed to be in $body. The $body parameter may be a scalar or a list reference (to allow more than one line of text). No extra formatting is done to $body before sending.
eval_make_target($target, [ $dir_root, $host, @extra_args ])
This routine is used to execute the UNIX make command. The caller is assumed to be in the directory that contains the Makefile. The value of $target is given to make as a command-line parameter. If $dir_root is passed and is non-null, it is used as a base directory for passing the following variables as command-line arguments to make:
TARGETHOST=$host
WWWDOC=$dir_root/htdocs
WWWBIN=$dir_root/bin
WWWCGI=$dir_root/cgi-bin
WWWFCGI=$dir_root/fcgi-bin
WWWJAVA=$dir_root/applets
WWWLOCAL=$dir_root/local
Anything passed in @extra_args is added to the end of the make command-line. If the developer wishes to pass something in @extra_args without using $dir_root, then the second parameter must be either a null string ("") or an explicit undef:
eval_make_target($target, undef, undef, @extra_args);
variable_substitution($hashref)
This was intended to be an internal support routine, but after popping up in several other places, it is now exported. It takes the hash reference passed in and scans it for nested references in the values part, to keys of the hash itself. That is, if there is a key called SERVER_ROOT, all values that contain the sequence "$SERVER_ROOT" will have that substituted with the value of $hashref-{SERVER_ROOT}>.
Requirements:
· Perl



Leave a comment




(optional)

What is 7-3?




0 comments


Add to

 Del.icio.us   Digg It   Furl   YahooMyWeb   Blinklist
 

IMS ReleaseMgr Utils Version History

Product Date Added
IMS ReleaseMgr Utils IMS::ReleaseMgr: 2008-02-07 23:01:12


Related Software

DISLIN
From category: Libraries
DISLIN 9.1 is libraries software developed by Helmut Michels. DISLIN is a high-level plotting library for displaying data as curves, polar plots, bar graphs, pie charts, 3D-color plots, surfaces...
libtorrent Rasterbar
From category: Libraries
libtorrent is a C++ library that aims to be a good alternative to all the other bittorrent implementations around....
Class::DBI::Template::Stash
From category: Libraries
Class::DBI::Template::Stash 0.03 is libraries software developed by Jason Kohles. Class::DBI::Template::Stash is a Perl module with Template::Stash subclass for Class::DBI::Template. SYNOPSI...
Convulsion
From category: Version-Control
Convulsion 0.0.5 is version control software developed by Gavin Brown. Convulsion is a drop-in CVS repository browser for PHP. It makes use of the libraries developed for the Chora module of the Ho...
CAM::PDF::GS
From category: Libraries
CAM::PDF::GS 1.07 is libraries software developed by Clotho Advanced Media Inc.. CAM::PDF::GS is a PDF graphic state. SYNOPSIS use CAM::PDF; my $pdf = CAM::PDF->new($filena...
Convert::UUlib
From category: Libraries
Convert::UUlib 1.06 is libraries software developed by Marc Lehmann. Convert::UUlib is a Perl interface to the uulib library (a.k.a. uudeview/uuenview). SYNOPSIS use Convert::UUlib \...
Acme::MetaSyntactic 0.90
From category: Libraries
Acme::MetaSyntactic 0.90 is libraries software developed by Philippe Bruhat. Acme::MetaSyntactic is Perl module themed metasyntactic variables. When writing code examples, it\'s always easy...
APFP 04
From category: Libraries
APFP 04 is libraries software developed by Dennis Darland. APFP (Arbitrary Precision Floating Point) is an Unicon class for performing arbitrary precision floating point calculations. It als...
Bio::Graphics::Glyph::alignment
From category: Libraries
Bio::Graphics::Glyph::alignment 1.4 is libraries software developed by Allen Day. Bio::Graphics::Glyph::alignment is the \"alignment\" glyph. SYNOPSIS See L< Bio::Graphics::Panel >...
XML Spew
From category: Perl-Modules
XML::Spew can spew small chunks of XML....
Pod Tidy
From category: Perl-Modules
Pod::Tidy is a reformatting Pod processor....
Chump
From category: Assembler-Tools
Chump 0.0.10 is assembler tools software developed by Charlie Brej. Chump is a language I created to describe line assemblers and disassembles in one description. It is used in KMD to descri...
Syncro SVN Client
From category: Version-Control
Syncro SVN Client makes easier the document and code sharing between content authors or developers....
Blassic
From category: Interpreters
Blassic 0.10.0 is interpreters software developed by Juli?n Albo. Blassic is a classic Basic interpreter. The line numbers are mandatory, and it has PEEK & POKE. The main goal is to execute program...
File::RdistByRsync
From category: Libraries
File::RdistByRsync 0.3 is libraries software developed by David Muir Sharnoff. File::RdistByRsync is a Perl module that can read rdist distfiles, emulate using rsync. SYNOPSIS...
 

Top Downloads

 
1. Canon PIXMA iP1000 Printer Driver
2. Canon PIXMA iP1200 Printer Driver x64 d
3. Canon PIXMA iP1200 Printer Driver
4. Realtek ALC/ 262/ 265/ 268/ 660/ 861/ 880/ 882/ 883/ 885/ 888 Audio
5. Canon PIXMA iP1300 Printer Driver a
6. Canon PIXMA MP210 MP Drivers
7. Canon PIXMA MP160 MP Drivers xp64
8. Canon PIXMA iP1600 Printer Driver
9. Asus EZVcr II
10. Canon PIXMA iP1300 Printer Driver c
11. Canon i-SENSYS LBP2900 Printer Driver R
12. Realtek RTL8100B(L)/RTL8100C(L)/RTL8101L/RTL8139C(L) Driver XP
13. Canon i560 Printer Driver
14. Realtek RTL8139C(L)+/RTL8139D(L)/RTL8100(L)/RTL8130/RTL8139B(L) Driver
15. Canon LaserShot LBP-1210 Printer Driver
16. Canon PIXMA MP160 MP Drivers 9xME
17. SendSong
18. Alcatel SpeedTouch 330/USB
19. Epox EP-8RDA3+ Bios
20. Genius VideoCAM Trek

DownloadTube Editor Reviews

 
1. Sudoku Solver Software
Sudoku Solver Software is a simple yet smart and reliable to...
2. Easy PC Firewall
WARNING: According to avast! 4.8, Easy PC Firewall contains ...
3. Anti Tracks Kit
Anti Tracks Kit is a simple yet powerful and reliable softwa...
4. PerfectClock Trader Edition
PerfectClock Trader Edition is a FREEWARE, feature limited v...
5. ProLingo Italian to English Dictionary
ProLingo Italian to English is a really nice, easy to use, a...
6. Tinysoar dvd to ipod converter
Tinysoar dvd to ipod converter will allow you to easily copy...
7. Tinysoar ipod value pack
Tinysoar ipod value pack includes the Tinysoar dvd to ipod c...
8. Tinysoar ipod video converter
Tinysoar ipod video converter is a simple to use tool that c...
9. Financial Icon Library
Vista Financial Icon Library is a stunning collection of mon...
10. Tinysoar iphone video converter
Tinysoar iphone video converter is a smart, simple tool that...

Software Reviews Full List



Recent Blog Posts

 
1. Google Chrome – It’s Finally Here. Will A Revolution Begin?
First, it was the rumors. Then, Google announced it official...
2. An Amazing Free Document Processing Software: LyX
The documents management task could be difficult in absence ...
3. DownloadTube Toolbar is Available For Free Download
Recently, we have made available for free download the Dow...
4. A Revolution in Web Browsing: The New Firefox 3.1b1 Already Beats All Speed Records
The latest beta1 release of Mozilla Firefox 3.1 shows majo...
5. Some Little, Nice, Freeware Tools You May Never Know When You'll Need
This time I won’t speak about a single freeware program that...
6. How To Increase The Quality of Your News Articles For Search Engine Spiders
The process of articles publishing is a common practice to...
7. Digg in Press: Tips and Opinions
Regarding Digg social bookmarking service there are many a...
8. Ubuntu Linux and Windows Can Share The Desktop In Absence Of Virtual Machines
Many people asked themselves how to run Ubuntu Linux and W...
9. 2.5 Millions Downloads for FireTune: It Makes Mozilla Firefox To Run With The Speed of Light
It is well known the fact that even the latest version of M...
10. Image Galleries on Autopilot: Instant Gallery Maker
The creation of image galleries ready for web publishing...

Last 20 Scripts

 
1. Dragonfly CMS
DragonflyCMS is a content management system based on PHP-Nuk
2. Diferior
Diferior is a flexible, customizable, both user and develope
3. DBHcms
DBHcms is a search engine optimized and lightweight content
4. concrete5
concrete5 content management system could be a rapid solutio
5. bloofoxCMS
bloofoxCMS is a lightweight content management system based
6. PHP Membership
PHP Membership script allows you to add password protection
7. Tube Spider
Tube Spider allows your visitors to search videos in Youtube
8. Azure CMS
Azure CMS is a universal software product for the developmen
9. Azure Portal
Azure Portal is a social networking script made with PHP pro
10. One Frog
One Frog is a content management system that allows you to u
11. Cigmas CMS
Cigmas CMS is a powerful web content management system for g
12. WebWord CMS
WebWord CMS is a full featured web content management system
13. Marjetica Content Management System
Marjetica Content Management System is a powerful, easy to u
14. Phenotype CMS
Phenotype CMS is a PHP/MySQL - Smarty Content Application Fr
15. Chupix CMS
Chupix is a content management system written in PHP and sto
16. Interspire Website Publisher
Interspire Website Publisher (formerly ArticleLive) is a con
17. Interspire Email Marketer
Interspire Email Marketer (formerly SendStudio) is a web bas
18. Comments RAM
Comments RAM is a lightweight PHP script that allows you to
19. KoolAjax
KoolAjax facilitates data exchange between server-side and c
20. KoolTreeView
KoolTreeView is a unique treeview control for PHP.