Sunday, November 1, 2009

scripts

ls -1A *.tar.gz | cut -d "_" -f 3 | cut -d "." -f 1 > sharaf
for i in `cat sharaf` ; do /scripts/restorepkg --force $i ; done







#cat /etc/trueuserdomains | cut -d ":" -f 2 | cut -d " " -f2
#cat /etc/trueuserdomains | cut -d ":" -f 2 | cut -d " " -f2 > cpusers
(#for i in `cat cpusers` ; do /scripts/pkgacct $i ;
#grep -i nuzkistah /etc/userdomains
#
# for i in `cat cpusers` ; do /scripts/pkgacct $i ; scp -P 2121 /home/cpmove-$i.tar.gz IP:/home ; ssh -t -p 2121 -q IP /scripts/restorepkg $i ; done

No comments:

Post a Comment