1 Mar 2008 10:44
InstallJammer usage
Hello,
Can please anybody help me.
How do I search using InstallJammer
before installation for the existence
certain products, which are pre-requisite
for my product; Also how do I search for certain environment variables.
As a third, a certain environment variable,
namely $AGENTWORKS_DIR
should result in my %InstallDir%
for example, if $AGENTWORKS_DIR is /home/unicenter
then my InstallDir should become
/home/unicenter/agents
How to do this?
Example shell scripts:
# check for existence of installed commponents
res=`lsm -l | $AWK '
BEGIN {i = 0;}\
/ca-cs-csl/ {++i; next;}\
/ca-cs-atech-services[^-]/ {++i; next;}\
/ca-unicenter-nsm-utils/ {++i; next;}\
END { print i;}\
'`
if [ $res -lt 3 ]
then
echo "pre-requisite ca-cs-csl or ca-cs-atech-services or
ca-unicenter-nsm-utils missing. Please install it and run this script
(Continue reading)
RSS Feed