Re: [rsync@b] Re: rsync and cygwin
I think that a key part of the answer is to use /cygdrive/c instead of / or \ to identify c:\ in a cygwin environment. 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? Trey Nolen -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: [rsync@b] Re: rsync and cygwin
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
Re: [rsync@b] Re: rsync and cygwin
Michael, 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 worked... 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.BATMSDOS.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. Later, Bert --On Tuesday, June 03, 2003 8:45 PM -0500 Michael Hipp [EMAIL PROTECTED] wrote: 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 -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: [rsync@b] Re: rsync and cygwin
Bert wrote: 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. It is part of it's POSIX-layerness, indeed, and it's storen in the registry, so it needs no startup script to set it up: http://cygwin.com/cygwin-ug-net/using.html#MOUNT-TABLE The mapping is stored in the current user's Cygwin /mount table/ in the Windows registry so that the information will be retrieved next time the user logs in. Because it is sometimes desirable to have system-wide as well as user-specific mounts, there is also a system-wide mount table that all Cygwin users inherit. The system-wide table may only be modified by a user with the appropriate priviledges (Administrator priviledges in Windows NT). -- Lapo 'Raist' Luchini [EMAIL PROTECTED] (PGP X.509 keys available) http://www.lapo.it (ICQ UIN: 529796) -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: [rsync@b] Re: rsync and cygwin
On Wed, Jun 04, 2003 at 10:50:18AM +0200, Lapo Luchini wrote: Bert wrote: 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. It is part of it's POSIX-layerness, indeed, and it's storen in the registry, so it needs no startup script to set it up: http://cygwin.com/cygwin-ug-net/using.html#MOUNT-TABLE Perhaps that is the document he needs. If not could you cygwinese, cygwinites, cygwinists, cygwinim or whatever point him to one that will clear up the slash/backslash issues that still haven't been addressed. Rsync does not recognise backslashes as such in exclude patterns. Path components are expected to be delimited by slashes (/) only. I expect the cygwin library translates as necessary. -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html