From: Peter Rosin <peda@lysator.liu.se>
To: cygwin@cygwin.com
Subject: Re: Data file access on different path (drive)
Date: Mon, 23 Nov 2015 10:23:00 -0000 [thread overview]
Message-ID: <5652E92B.6020203@lysator.liu.se> (raw)
In-Reply-To: <CAE3taFBqKEesOj1md6N5u6=3ghFrA-yDuRsBbQTPGinch1BCjQ@mail.gmail.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
next prev parent reply other threads:[~2015-11-23 10:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 8:54 Lester Anderson
2015-11-23 8:57 ` Marco Atzeri
2015-11-23 9:51 ` Lester Anderson
2015-11-23 9:59 ` Marco Atzeri
2015-11-23 10:11 ` Lester Anderson
2015-11-23 10:19 ` Marco Atzeri
2015-11-23 10:23 ` Peter Rosin [this message]
2015-11-23 11:12 ` Lester Anderson
2015-11-23 14:51 ` cyg Simple
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5652E92B.6020203@lysator.liu.se \
--to=peda@lysator.liu.se \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).