X-Spam-Check-By: sourceware.org Message-ID: Date: Thu, 3 May 2007 17:04:10 -0700 From: "marvin rishoff" To: cygwin AT cygwin DOT com Subject: rsync with --recursive --files-from= MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: c777f1078ae53742 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 Hi , I am having a difficult time getting rsync to run within a bash script, within cygwin. I can run the command at the command line and it works fine however when I run it from the script I get an error : rsync: failed to open files-from file <(cd /c/WINDOWS/system32/LogFiles/WMS/[Global]/ && find ./WMS_*.log -mtime -7 -print): No such file or directory rsync error: syntax or usage error (code 1) at /home/lapo/packaging/tmp/rsync-2.6.6/main.c(1108) the command that works is : rsync -avz --recursive --files-from=<(cd "/c/WINDOWS/system32/LogFiles/WMS/[Global]/" && find ./WMS_*.log -mtime -7 -print) "/c/WINDOWS/system32/LogFiles/WMS/[Global]" -e ssh admin AT myhost DOT net:/var/log/streaming/wms/logs anyone got a min to correct my usage or point me in the right direction Thanks marvin -- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/