delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/19/20:19:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <007901c2d87e$58903580$775f4e51@webdev>
Reply-To: "Elfyn McBratney" <cygwin AT cygwin DOT com>
From: "Elfyn McBratney" <elfyn-cygwin AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>, "Kris Dahl" <krislists AT sledge-hammer DOT net>
References: <06d601c2d87c$bdac5f90$021010ac AT tequila>
Subject: Re: rsync problem... windows cmd vs. cygwin terminal
Date: Thu, 20 Feb 2003 01:21:07 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> I'm using rsync on cygwin to syncronize a bunch of remote machines to a
> central machine.
>
> I'm planning on automating it to run regularly with windows scheduler, so
I
> have some batch files with the rsync command.
>
> When I run batch file from like a Windows cmd window it gives me an error
> with rsync tries to move the temp file to the perm file:
>
> rename .Types.dbf.002724 -> Types.dbf : no such file or directory
>
> Yet when I run this from a cygwin terminal window it works just dandy.
>
> I guess its a difference of using the cygwin.dll to run rsync/ssh/etc FROM
> windows, rather then in the cygwin environment proper.  Is there any way
to
> correct this problem, or do I just need to set up a cron from withing the
> cygwin environment?
>
> Thanks,
> -k


If it works perfectly from the cygwin terminal then why not use a shell
script and execute that via the task scheduler? Once you have the commands
in your shell script you can just use

C:\Cygwin\bin\bash.exe -c /path/to/script.sh

instead of

C:\blah\path\batch.bat


Regards,

Elfyn McBratney
elfyn AT exposure DOT org DOT uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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