[rsync@b] Re: rsync and cygwin

Bert rsync at b.sproing.net
Wed Jun 4 13:25:54 EST 2003


While I frequently run scheduled bash shell scripts via a bash.bat file as 
you describe, I don't think it is necessary here... I think Trey can run 
rsync.exe directly if he really wants to.

I tested running 'ls /cygdrive' from within a cmd.exe dos prompt and it 

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\>c:\tools\cygwin\bin\ls /cygdrive/
c  e  f  n  s

C:\>c:\tools\cygwin\bin\ls /cygdrive/c
AUTOEXEC.BAT            MSDOS.SYS            ....

(I'm assuming rsync would work similarly to ls)

While I don't know the cygwin architecture details, it looks like the 
/cygdrive functionality is a part of cygwin.dll and can be used without a 
parent bash shell.


--On Tuesday, June 03, 2003 8:45 PM -0500 Michael Hipp <Michael at Hipp.com> 

> Trey Nolen wrote:
>> But can you do that if you are not running it from the Cygwin prompt?   I
>> didn't do that because we were starting it with the scheduler. Will that
>> still work?
> Yes. Write a small 'myjob.bat' file with something like this in it:
> --------
> @echo off
> C:
> chdir C:\cygwin\bin
> bash --login -i -c "~/myscript.sh"
> --------
> Use scheduler to run 'myjob.bat'. It will execute 'myscript.sh' under
> bash and from there you can do anything bash can do.
> Michael
> --
> To unsubscribe or change options:
> http://lists.samba.org/mailman/listinfo/rsync Before posting, read:
> http://www.catb.org/~esr/faqs/smart-questions.html

More information about the rsync mailing list