/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk
286 by Suren A. Chilingaryan
Update of setups
1
#! /bin/bash
2
3
4
srv="http://ipekatrinadei.ka.fzk.de/adei/"
5
props="db_server=cs0&db_name=ControlSystem_rep.20120711"
6
setup="katrin"
7
8
9
req="$srv/services/list.php?setup=$setup&target=groups&$props"
10
echo $req
11
12
res=`curl $req 2>/dev/null | xmllint --format - | grep "<Value" | sed -e "s/.*value=\"\([^\"]\+\)\".*/\\1/"`
13
14
for gr in $res; do
15
    req="$srv/services/list.php?setup=$setup&target=items&$props&db_group=$gr"
16
    lines=`curl $req 2>/dev/null | xmllint --format - | wc -l`
17
    
18
    echo "Group: $gr, Lines: $lines"
19
done