adding host parameter
authorChris Sharp <csharp@georgialibraries.org>
Mon, 19 Oct 2015 21:57:59 +0000 (17:57 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 19 Oct 2015 21:57:59 +0000 (17:57 -0400)
get_circ_history.sh
get_hold_history.sh

index 4cba791..d30155f 100755 (executable)
@@ -20,6 +20,7 @@ done
 
 # Note: it is assumed that you're using .pgpass here
 PSQL="/usr/bin/psql"
+PSQL_HOST="mydbhost"
 PSQL_USER="evergreen"
 PSQL_DB="evergreen"
 
@@ -93,4 +94,4 @@ EOF
 #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"
index 199ec45..ff3ca15 100755 (executable)
@@ -20,6 +20,7 @@ done
 
 # Note: it is assumed that you're using .pgpass here
 PSQL="/usr/bin/psql"
+PSQL_HOST="mydbhost"
 PSQL_USER="evergreen"
 PSQL_DB="evergreen"
 
@@ -114,4 +115,4 @@ EOF
 #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"