X-Recipient: archive-cygwin@delorie.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@cygwin.com Subject: Re: Error invoking find as a ssh command References: <50D0DCAF.6010608@seznam.cz> <50D0E08B.6000907@seznam.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.99@seznam.cz Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com On 18.12.2012 22:35, Dan Kegel wrote: > On Tue, Dec 18, 2012 at 1:30 PM, V.99 wrote: >> [root@backup domain_backup]# ssh bkp@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@builder.coopexsoft.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