#!/bin/ksh93 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/lib/ksh93/ihs/KLIB_IHS_get_ihs_plugin_path.sh 1.1 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # COPYRIGHT International Business Machines Corp. 2009,2010 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)31 1.1 src/43haes/lib/ksh93/ihs/KLIB_IHS_get_ihs_plugin_path.sh, hacmp, 61haes_r714 11/28/11 15:17:22 # #=head1 NAME # # KLIB_IHS_get_ihs_plugin_path - Obtain the path to the WebSphere Plugin # used by the IBM Http Server # #=head1 SYNOPSIS # # instances=$(KLIB_IHS_get_ihs_plugin_path ihs_install_path) # #=head1 DESCRIPTION # # Function echo to stdout the path to the the WebSphere Plugin used # by the IBM Http Server # #=head1 ARGUMENTS # # 1: [scalar] installation path to IBM Http Server # #=head1 RETURN # # None # #=head1 COPYRIGHT # #(C) COPYRIGHT International Business Machines Corp. 2005 #All Rights Reserved # #=cut # function KLIB_IHS_get_ihs_plugin_path { . /usr/es/lib/ksh93/func_include typeset ihs_path=$1 typeset httpd_conf="$ihs_path/conf/httpd.conf" typeset plugin_path="" if [[ -r $httpd_conf ]]; then plugin_path=$(/usr/bin/grep "^#" $httpd_conf | /usr/bin/grep "WebSpherePluginConfig" | awk '{print $2}') fi echo $plugin_path return 0 }