General Topics :  geo-*- Rick Richardson's Linux Tools for Geocaching The fastest message board... ever.
 
geo-gpx -O
Posted by: Pear Head ()
Date: October 27, 2009 11:38PM

Rick -

I'm trying to utilize the geo-gpx, but I want to specify where the script puts the output gpx file. I don't care so much about what it's named, but need to specify the directory that it's placed in.

It's being called like this:

~/ph.org/gpx/geo-gpx -O ~/ph.org/gpx/output.gpx GC1HV6B

But it consistently creates GC1HV6B.gpx in whatever directory I run it from. I've tried it with and without the space after the -O with the same results.

Am I missing something (which would then be really stupid on my part), or is this a bug? The program indicates (to me anyway) that I should expect it to be there (-O filename Output file, if not stdout).

Thanks.

- Pear Head

Options: ReplyQuote
Re: geo-gpx -O
Posted by: rickrich ()
Date: October 28, 2009 05:09AM

"If an output format is specified with -o, the GPX data is combined into
a single file with that format and output into stdout or to the file-
name specified with the -O option."

$ geo-gpx -ogpx -O /tmp/zzz GC1HV6B
$ ll /tmp/zzz
-rw-rw-r-- 1 rick rick 7751 2009-10-28 04:08 /tmp/zzz

Options: ReplyQuote
Re: geo-gpx -O
Posted by: Pear Head ()
Date: October 28, 2009 04:38PM

Thanks - that makes sense now in hindsight. :)

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.