From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122581 invoked by alias); 23 Nov 2015 10:23:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 120220 invoked by uid 89); 23 Nov 2015 10:23:42 -0000 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 Received: from mail.lysator.liu.se (HELO mail.lysator.liu.se) (130.236.254.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 23 Nov 2015 10:23:41 +0000 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 306D240010 for ; Mon, 23 Nov 2015 11:23:36 +0100 (CET) Received: from [192.168.0.96] (217-210-101-82-no95.business.telia.com [217.210.101.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id EC6524000C for ; Mon, 23 Nov 2015 11:23:35 +0100 (CET) Message-ID: <5652E92B.6020203@lysator.liu.se> Date: Mon, 23 Nov 2015 10:23:00 -0000 From: Peter Rosin 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@cygwin.com Subject: Re: Data file access on different path (drive) References: <5652D4DE.8060206@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-11/txt/msg00339.txt.bz2 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