delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; q=dns; s=default; b=vK | |
9G8MwDFIww+xGRcXuxzeyKIcZ5ub6vqmF90eVMOosL5FzvkPePAg8PcXTMq4xY38 | |
lw58yaWThBu4vu8Ye0Ue03sDqcRgAq+r3uYa/PIp9TxjEu1loLNyXViSK1HjBW8z | |
yMkQHT98DY/f6pCmKvjx+9HuzTu8HNvbYwlYtEljY= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; s=default; bh=/4or/1LP | |
5wNWcCZkAWJ8aXb8/Oo=; b=ewlKy8MZp1Lt25QFtxbGPTM/4mBvTrCKY2hVH5R0 | |
MYcPQFL/roxft6eZuzlk4BlrG5Wmr/kB1SB7ckejGL1/l667IYKF+btEAlV466+4 | |
c/+gcQFjxHQUotsXNGCtp/CYCj0H9SVKc6Ar5x/4O+24CT7sAxps7jgSeh+VvL04 | |
cc8= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=2.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-lf0-f42.google.com |
MIME-Version: | 1.0 |
X-Received: | by 10.25.160.137 with SMTP id j131mr6918053lfe.123.1448277162846; Mon, 23 Nov 2015 03:12:42 -0800 (PST) |
In-Reply-To: | <5652E92B.6020203@lysator.liu.se> |
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> <5652E92B DOT 6020203 AT lysator DOT liu DOT se> |
Date: | Mon, 23 Nov 2015 11:12:42 +0000 |
Message-ID: | <CAE3taFCoFyDgx+t0CdesiaUutAAwy3TU0akwcLEVLvbqp-nFeA@mail.gmail.com> |
Subject: | Re: Data file access on different path (drive) |
From: | Lester Anderson <arctica1963 AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Thanks Peter! Finally got the test script to run : #!/bin/bash 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 echo $lon_min $lon_max $lat_min $lat_max img2grd "$ruta_elev" -V -T1 -R$lon_min/$lon_max/$lat_min/$lat_max -S1 -Gelev.grd -I1m -D img2grd "$ruta_grav" -T1 -V -R$lon_min/$lon_max/$lat_min/$lat_max -S0.1 -GFA.grd -I1m -D Using the path as Q:/... worked but the Cygrdrive/q/... did not. Lester On 23 November 2015 at 10:23, Peter Rosin <peda AT lysator DOT liu DOT se> wrote: > > 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 > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |