- (
- for server in DB API BOOT WWW ; do
- hostname=PLC_${server}_HOST
- ip=PLC_${server}_IP
- if [ -n "${!ip}" ] ; then
- echo "${!ip} ${!hostname}"
- else
- ip=$(gethostbyname ${!hostname})
- if [ -n "$ip" ] ; then
- echo "$ip ${!hostname}"
- fi
+ for server in DB API BOOT WWW ; do
+ hostname=PLC_${server}_HOST
+ ip=PLC_${server}_IP
+ if [ -n "${!ip}" ] ; then
+ echo "${!ip} ${!hostname}"
+ else
+ ip=$(gethostbyname ${!hostname})
+ if [ -n "$ip" ] ; then
+ echo "$ip ${!hostname}"