On Sat, Mar 1, 2008 at 11:32 AM, Nathan Scott <<a href="mailto:scottn@omnitechsolutions.co.uk">scottn@omnitechsolutions.co.uk</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have JAVA1.6 downloaded and installed.<br>
<br>
I have a shell script do_it that looks like this:<br>
java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm /<br>
--bounding-polygon file="MyArea.txt" --write-xml /<br>
file="MyArea.osm"<br>
<br>
and MyArea.txt looks like this:<br>
North_Bristol<br>
1<br>
        51.6304 -2.5619<br>
        51.6304 -2.4925<br>
        51.4865 -2.4925<br>
        51.4865 -2.5619<br>
END<br>
END<br>
<br>
And I get this:<br>
<br>
[scottn@localhost osmosis-0.24]$ sh do_it<br>
01-Mar-2008 17:27:19 com.bretth.osmosis.core.Osmosis main<br>
INFO: Osmosis Version 0.24<br>
01-Mar-2008 17:27:19 com.bretth.osmosis.core.Osmosis main<br>
INFO: Preparing pipeline.<br>
01-Mar-2008 17:27:19 com.bretth.osmosis.core.Osmosis main<br>
SEVERE: Main thread aborted.<br>
com.bretth.osmosis.core.OsmosisRuntimeException: The following data<br>
pipes have not been terminated with appropriate output sinks (default.0).<br>
        at<br>
com.bretth.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:88)<br>
        at<br>
com.bretth.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:106)<br>
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:48)<br>
do_it: line 2: --bounding-polygon: command not found<br>
<br>
Has anyone got any ideas?<br>
<br></blockquote></div><br>You need to use backslashes, not forward slashes, to indicate the continuation of a line in your shell script. Like this:<br>
java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm \<br>
--bounding-polygon file="MyArea.txt" --write-xml \<br>
file="MyArea.osm"<br>
<br>Karl