I've try to get exit code with my python script:

> import os
> code = os.system("pgsql2shp -f dagestan.shp -h gis-lab.info -u labinfo -P
> *** osm \"SELECT st_intersection as geom from dagestan_point_attr WHERE
> highway='bus_stop'")
> print code
>
At result I've got 256 (not 2 as expected).
On Thu, Sep 2, 2010 at 12:41 AM, Mark Cave-Ayland <
mark.cave-ayl...@siriusit.co.uk> wrote:

> Denis Rykov wrote:
>
>  It would be great if you can add an exit code for 0 records dbfs,
>> it'll make my life so much easier.
>>
>
> Okay done - it was quite a simple patch in the end. Can you update to SVN
> r5888 and confirm that you get an exit code of 0 on success, and 2 if 0
> records were processed?
>
>
>
> ATB,
>
> Mark.
>
> --
> Mark Cave-Ayland - Senior Technical Architect
> PostgreSQL - PostGIS
> Sirius Corporation plc - control through freedom
> http://www.siriusit.co.uk
> t: +44 870 608 0063
>
> Sirius Labs: http://www.siriusit.co.uk/labs
> _______________________________________________
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to