This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Data file access on different path (drive)
- From: Peter Rosin <peda at lysator dot liu dot se>
- To: cygwin at cygwin dot com
- Date: Mon, 23 Nov 2015 11:23:39 +0100
- Subject: Re: Data file access on different path (drive)
- Authentication-results: sourceware.org; auth=none
- References: <CAE3taFBySrYf7=ZCadpe=dZtZaXmhhf5RnYtmndUd1eGa1x6XQ at mail dot gmail dot com> <5652D4DE dot 8060206 at gmail dot com> <CAE3taFBqKEesOj1md6N5u6=3ghFrA-yDuRsBbQTPGinch1BCjQ at mail dot gmail dot com>
On 2015-11-23 10:51, Lester Anderson wrote:
> Hello,
>
> I tried a very basic script to test this:
>
> #!/bin/bash
> ruta_elev="cygdrive/q/geophys/Potential-field datasets/Topography/topo_17.1.img"
> ruta_grav="cygdrive/q/geophys/Potential-field datasets/Gravity/grav.img.23.1"
> # Also tried
> # ruta_elev="Q:/geophys/Potential-field datasets/Topography/topo_17.1.img"
> # ruta_grav="Q:/geophys/Potential-field datasets/Gravity/grav.img.23.1"
> lon_min=-12
> lon_max=0
> lat_min=28
> lat_max=39
> img2grd $ruta_elev -V -T1 -R$lon_min/$lon_max/$lat_min/$lat_max -S1
In addition to the typo with the leading slash, you also need to quote the file path here,
like so:
img2grd "$ruta_elev" -V -T1 -R$lon_min/$lon_max/$lat_min/$lat_max -S1
Cheers,
Peter
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple