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" 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 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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