saintex has asked for the wisdom of the Perl Monks concerning the following question:
All works fine.system "rsync --version";
That sounds goodrsync version 3.0.7 protocol version 30 Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, no xattrs, iconv, symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and y +ou are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details.
And this is pretty strange:2 [main] rsync 4008 C:\Programmi\cwRsync\bin\rsync.exe: *** fata +l error - couldn't initialize fd 0 for /dev/console
Moreover the same rsync command, in DOS batch style, works fine also if I call it from Scheduled Tasks:$ENV{'CWRSYNCHOME'}='C:\Programmi\cwRsync'; $ENV{'CYGWIN'}='nontsec'; $ENV{'HOME'}='C:\Documents and Settings\saintex'; $ENV{'CWOLDPATH'}=$ENV{"PATH"}; $ENV{'PATH'}='C:\Programmi\cwRsync\bin;' . $ENV{'PATH'};
The rsync command is just a little part of my Perl program, so I can't translate all the stuff in DOS style (and I don't like to do it).@ECHO OFF SETLOCAL SET CWRSYNCHOME=C:\Programmi\cwRsync SET CYGWIN=nontsec SET HOME=C:\Documents and Settings\wolf SET CWOLDPATH=%PATH% SET PATH=%CWRSYNCHOME%\BIN;%PATH% rsync -av --delete '/cygdrive/c/Documents and Settings/saintex/Desktop +/to save' '/cygdrive/c/Documents and Settings/saintex/Desktop/myTest'
|
|---|