[postgis-users] quiet user interaction?

Brian Hamlin maplabs at light42.com
Mon Jul 19 01:14:43 PDT 2010


When I run the following script
   (on a LiveDVD b2)

I get a pager prompt (less) *completely* unexpectedly..
one time, after creating the next to last table...
am I missing something obvious ?

   -Brian

==============================================
#!/bin/sh

SRC_DIR="/usr/local/share/data/natural_earth"
createdb natural_earth
createlang plpgsql natural_earth

psql --quiet -v ON_ERROR_STOP=1 natural_earth -f 
/usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
psql --quiet natural_earth -f 
/usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql

#export PGCLIENTENCODING=WIN1252
echo '' > /tmp/load.sql
for n in $SRC_DIR/*shp;
do
   shp2pgsql -W LATIN1 -s 4326 -I -g the_geom $n >> /tmp/load.sql
done

echo "vacuum analyze;" >> /tmp/load.sql
#---
psql natural_earth --quiet -v ON_ERROR_STOP=1 -f /tmp/load.sql
#rm /tmp/load.sql







More information about the postgis-users mailing list