root/scripts/xml2db/test @ 13
1 |
#!/bin/bash
|
---|---|
2 |
# Tests xml2db
|
3 |
|
4 |
selfDir="$(dirname -- "$0")" |
5 |
|
6 |
export host= user=postgres database=vegbank |
7 |
if test -z "${password+_}" |
8 |
then
|
9 |
echo "Password can also be specified with: export password=..." |
10 |
read -s -p "Password for $user@$host: "; echo |
11 |
export password="$REPLY" |
12 |
fi
|
13 |
|
14 |
cd "$selfDir" |
15 |
./xml2db <vb_plot_observation.xml |