March 28th, 2011 by Gia

OS : Centos 5.4 32bit
ZCS : Release 6.0.1_GA_1816.RHEL5_20090911181524 CentOS5 FOSS edition.
output : dislist
*execute using user zimbra

#!/bin/bash

for i in `zmprov gadl`
do
  echo $i
  echo "zmprov cdl $i" >> dislist
  zmprov gdl $i | grep zimbraMailForward | awk '{print $2}' > TEMP
  for row in $(cat TEMP)
  do
    echo "zmprov adlm $i $row" >> dislist
  done
done

rm -f TEMP

Comments

comments

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.