delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/18/16:57:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_DYNAMIC,KHOP_THREADED,RDNS_DYNAMIC,SARE_FREE_WEBM_CZSEZNA,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <50D0E697.2040100@seznam.cz>
Date: Tue, 18 Dec 2012 22:56:39 +0100
From: "V.99" <v DOT 99 AT seznam DOT cz>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Dan Kegel <dank AT kegel DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Error invoking find as a ssh command
References: <50D0DCAF DOT 6010608 AT seznam DOT cz> <50D0E08B DOT 6000907 AT seznam DOT cz> <CAPF-yObLYv0ndUkoPZkv6w_yYi3=O2GZT3OO6TNwAiyWtCkQCA AT mail DOT gmail DOT com>
In-Reply-To: <CAPF-yObLYv0ndUkoPZkv6w_yYi3=O2GZT3OO6TNwAiyWtCkQCA@mail.gmail.com>
X-CoopexSoftPB-MailScanner-Information: Please contact the ISP for more information
X-CoopexSoftPB-MailScanner-ID: 73ED3A1AC6.A0259
X-CoopexSoftPB-MailScanner: Found to be clean
X-CoopexSoftPB-MailScanner-From: v DOT 99 AT seznam DOT cz
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

On 18.12.2012 22:35, Dan Kegel wrote:
> On Tue, Dec 18, 2012 at 1:30 PM, V.99 <v DOT 99 AT seznam DOT cz> wrote:
>> [root AT backup domain_backup]# ssh bkp AT builder find
>> /cygdrive/d/Backups/Data -printf "\"%f (%s)\n\""
>> FIND: Invalid switch
>
> It's picking up the windows find.exe instead of the cygwin one.  What
> does
>    echo $PATH
> say?
>
> - Dan
>

You are right!
PATH on builder begins with 
/cygdrive/c/Windows/system32:/cygdrive/c/Windows:...

I rewrote command to
ssh bkp AT builder DOT coopexsoft DOT sk /usr/bin/find /cygdrive/d/Backups/Data 
-printf "'%f (%s)\n'"
and now works perfectly!

Thank You very much.

-- 

.: Vlado :.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019