# Note: it is assumed that you're using .pgpass here
PSQL="/usr/bin/psql"
+PSQL_HOST="mydbhost"
PSQL_USER="evergreen"
PSQL_DB="evergreen"
#echo "\$BARCODE = $BARCODE, \$LIMIT = $LIMIT"
#echo $SQL
-$PSQL -U "$PSQL_USER" -d "$PSQL_DB" -P null="<NULL>" -x -c "$SQL"
+$PSQL -U "$PSQL_USER" -h "$PSQL_HOST" -d "$PSQL_DB" -P null="<NULL>" -x -c "$SQL"
# Note: it is assumed that you're using .pgpass here
PSQL="/usr/bin/psql"
+PSQL_HOST="mydbhost"
PSQL_USER="evergreen"
PSQL_DB="evergreen"
#echo "\$USER_BARCODE = $USER_BARCODE, \$ITEM_BARCODE = $ITEM_BARCODE, \$LIMIT = $LIMIT"
#echo $SQL
-$PSQL -U "$PSQL_USER" -d "$PSQL_DB" -P null="<NULL>" -x -c "$SQL"
+$PSQL -U "$PSQL_USER" -h "$PSQL_HOST" -d "$PSQL_DB" -P null="<NULL>" -x -c "$SQL"