|
a/upcmd.sh |
|
b/upcmd.sh |
|
... |
|
... |
89 |
uribase=http://$hostport/ctl
|
89 |
uribase=http://$hostport/ctl
|
90 |
ctluri=$uribase/$service
|
90 |
ctluri=$uribase/$service
|
91 |
# End specific
|
91 |
# End specific
|
92 |
|
92 |
|
93 |
if test "X$sedcmd" != "X"; then
|
93 |
if test "X$sedcmd" != "X"; then
|
94 |
postdata=`sed $sedcmd < $xml`
|
94 |
postdata=`sed $sedcmd < $xml`
|
95 |
else
|
95 |
else
|
96 |
postdata=`cat $xml`
|
96 |
postdata=`cat $xml`
|
97 |
fi
|
97 |
fi
|
98 |
#echo $postdata
|
98 |
#echo $postdata
|
99 |
|
99 |
|
100 |
serviceid=`grep xmlns:u $xml | \
|
100 |
serviceid=`grep xmlns:u= $xml | head -1 | \
|
101 |
awk '{print $2}' | \
|
101 |
awk '{print $2}' | \
|
102 |
sed -e 's/>//' -e 's/xmlns:u=//' -e 's/"//g'`
|
102 |
sed -e 's/>//' -e 's/xmlns:u=//' -e 's/"//g'`
|
103 |
|
103 |
|
104 |
set -x
|
104 |
set -x
|
105 |
wget -O - \
|
105 |
wget -O - \
|