/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to scripts/count.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2012-07-14 17:44:09 UTC
  • Revision ID: csa@dside.dyndns.org-20120714174409-cuzsy4vupyjx9lia
Update of setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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