There are many servers and their directory structer should be exactly the same. To check the directory path for all servers, I wrote a script.
Code:
#! /bin/ksh
ARRAY_DIRECTORIES[1]="/c/dev/custom/bin"
ARRAY_DIRECTORIES[2]="/c/dev/db/custom/src"
ARRAY_ENV[1]="remoteName200"
ARRAY_ENV[2]="remoteName201"
ARRAY_ENV[3]="remoteName202"
integer DIR_INDEX=0
integer ENV_INDEX=0
while(($ENV_INDEX<3))
do
ENV_INDE=`expr $ENV_INDE+1`
ssh "${ARRAY_ENV[$ENV_INDE]}"
while (($DIR_INDEX<2))
do
DIR_INDEX=`expr $DIR_INDEX + 1`
if [ ! -d "${ARRAY_DIRECTORIES[$DIR_INDEX]}" ]
then
#do something
fi
done
done