#!/bin/bash
results=`cat /data/srv/xymon/server/etc/hosts.cfg|grep -v ^#|awk '{print $2}' `
for i in $results
do		
   echo "$i"
   echo "-------------------------------------------"
   sudo /usr/bin/func $i call pacman update_system $1		
done
