SYSTEM_NAME=`uname -n`
PRODUCTION_SYSTEMS="systemA, systemB, systemC"
How do I write a test condition that basically says, if SYSTEM_NAME is part of the PRODUCTION_SYSTEMS then exicute commands... This script will be ran on both production and development systems.
I am not set on it being a "if" condition, I am just looking for the cleanest way to do this. I do have a workaround but it is not clean.
thanks. -B
birbone@earthlink.net
PRODUCTION_SYSTEMS="systemA, systemB, systemC"
How do I write a test condition that basically says, if SYSTEM_NAME is part of the PRODUCTION_SYSTEMS then exicute commands... This script will be ran on both production and development systems.
I am not set on it being a "if" condition, I am just looking for the cleanest way to do this. I do have a workaround but it is not clean.
thanks. -B
birbone@earthlink.net