| 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:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| q=dns; s=default; b=VlkvD5M7AV3q9Zc3GUH59b6bw1f3aenH4VKIGXxBpaS | |
| 95vdjHyWHabdmsHNJRoRSjNKtgkPxDwtVcsQbRz2okdU9uPXsc1MT2ulTBxiFhSX | |
| VR1sCXlzVH66Us3JNWbcr7AS3pScRkHCC42rSMO4q0/u3dCMh/ptDlA9ElTedOnA | |
| = | |
| 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:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| s=default; bh=KCybfzulaREiFP9dHr/h2nFbOSE=; b=qpuV0urI2DAkxMhCa | |
| 4456ll3HokCG0kM1BeFqMYktfDF//X1FdInM+fQlGLP1/A1FUOi2dzGFnTZHLqHw | |
| Sdcd2QQJafoe4F1Zaez0BAInCLqqFI8PMT05DFtPG911TV2sUCTRRcqducDtAH7v | |
| NnnhzgfRdcJctZOoFRzl3f0ki0= | |
| 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=-1.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 |
| X-HELO: | mail.lysator.liu.se |
| Message-ID: | <5652E92B.6020203@lysator.liu.se> |
| Date: | Mon, 23 Nov 2015 11:23:39 +0100 |
| From: | Peter Rosin <peda AT lysator DOT liu DOT se> |
| User-Agent: | Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Data file access on different path (drive) |
| 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> |
| 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |