This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error invoking find as a ssh command


On 18.12.2012 22:35, Dan Kegel wrote:
On Tue, Dec 18, 2012 at 1:30 PM, V.99 <v.99@seznam.cz> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]