Hello,

 

Indeed there is no “-q”.

But are you sure that it actually is shp2pgsql that you want to quiet down
? (there are at most 15 lines)

I think that what can annoy you is the output from the psql that usually is
piped behind shp2pgsql.

Psql do have a “-q” parameter.

e.g. : 

shp2pgsql -W utf-8 -s 4326 -d -I /path/to/some/shp my_table | psql -q -d
my_database -h host -U user

 

That’s the command I used most of the time.

 

If you really want to remove shp2pgsql output I think that your only option
is using something like “command > null” to redirect the ouput nowhere.

 

Hope this helps.

 

Nicolas

 

De : postgis-users-boun...@postgis.refractions.net
[mailto:postgis-users-boun...@postgis.refractions.net] De la part de
Shreerang Patwardhan
Envoyé : lundi 29 mars 2010 12:44
À : Pune GNU/Linux Users Group Mailing List; PostGIS Users Discussion
Objet : [postgis-users] shp2pgsql in quite mode????...(shp2pgsql -q)???

 

Hey all,
     I do not wish to display the output of the command shp2pgsql at the
terminal. I want the command to run in quite mode. But there is no -q option
for shp2pgsql. How do I get around this issue?


Thanx,
Shreerang Patwardhan.

_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to