Revision 7864
Added by Aaron Marcuse-Kubitza over 11 years ago
make_analytical_db | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 | 2 |
# Creates analytical DB |
3 |
# Usage: self [log=] |
|
3 | 4 |
|
4 | 5 |
selfDir="$(dirname -- "$0")" |
5 | 6 |
|
6 | 7 |
. "$selfDir/vegbien_dest" |
7 | 8 |
|
8 |
exec 2>>"$selfDir/../inputs/analytical_db/logs/make_analytical_db.log.sql" >&2 |
|
9 |
if test -n "${log=1}"; then # $log defaults to 1 |
|
10 |
exec >>"$selfDir/../inputs/analytical_db/logs/make_analytical_db.log.sql" 2>&1 |
|
11 |
fi |
|
9 | 12 |
|
10 | 13 |
(set -x; date) |
11 | 14 |
|
Also available in: Unified diff
make_analytical_db: Support the $log flag, which toggles output to the terminal or a log file