root/scripts/xml2db/test @ 15
1 | 11 | aaronmk | #!/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 | 13 | aaronmk | echo "Password can also be specified with: export password=..." |
10 | 11 | aaronmk | read -s -p "Password for $user@$host: "; echo |
11 | export password="$REPLY" |
||
12 | fi
|
||
13 | |||
14 | cd "$selfDir" |
||
15 | ./xml2db <vb_plot_observation.xml |