Project

General

Profile

1
#!/bin/bash
2
# Runs tnrs_db on VegBIEN
3
# Usage: env [log=] self
4

    
5
selfDir="$(dirname -- "$0")"
6
selfName="$(basename $0)"
7

    
8
. vegbien_dest
9

    
10
if test -n "${log=1}"; then # $log defaults to 1
11
    exec >>"$selfDir/logs/$selfName.log.sql" 2>&1
12
fi
13

    
14
set -x
15
date
16

    
17
exec tnrs_db "$@"
(2-2/2)