General Topics :  geo-*- Rick Richardson's Linux Tools for Geocaching The fastest message board... ever.
 
Enhancement to geo-pqdownload
Posted by: anakhanz ()
Date: May 05, 2011 07:43PM

Attached is a diff which adds the following features which IMHO make geo-pqdownload more useful to be run as cron job.
The additional features are:
  • Option to set the output folder
  • Option to insert the date into the front of file names that the pq's are saved as
  • Option to replace spaces in the file names that the pq's are saved as with underscores
It would be great if these could be added to the distributed script.

Attachments: geo-pqdownload.sh.diff (1.5 KB)  
Options: ReplyQuote
Re: Enhancement to geo-pqdownload
Posted by: rickrich ()
Date: May 06, 2011 12:04PM

Added -t. From the mnanual page:
       -t name
              Construct name using strftime specifiers, PLUS %+ for the actual
              name. I.E.  -t %m%d-%+

       Download "My Finds.." files prefixed with year-month-day:

       $ geo-pqdownload -d -z -n "My*" -t %Y-%m-%d-%+
       $ ls *My*
       2011-05-06-My Finds Pocket Query.zip

Options: ReplyQuote


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