Re: Feature request for rsync for running scripts

2005-07-28 Thread Erik Jan Tromp
On Tue, 19 Jul 2005 18:06:59 -0700 Wayne Davison [EMAIL PROTECTED] wrote: On Tue, Jul 19, 2005 at 06:27:56PM -0500, Evan Harris wrote: Is it possible that this patch might be added to the mainstream release anytime soon? I was originally against the idea, but have softened my opposition

Re: Feature request for rsync for running scripts

2005-07-28 Thread Wayne Davison
On Thu, Jul 28, 2005 at 05:40:02AM -0400, Erik Jan Tromp wrote: Yep, just verified. umask = This should be fixed in the latest patch in CVS: http://rsync.samba.org/ftp/unpacked/rsync/patches/pre-post-exec.diff Second is localtime/UTC timestamps in logs Please read through the prior

Re: Feature request for rsync for running scripts

2005-07-22 Thread Wayne Davison
On Wed, Jul 20, 2005 at 08:16:49PM -0500, Evan Harris wrote: Instead of putting those bits of info in the environment, why not just use the same substitutions as are available in the log format directive in the command string? I like the environment method better. Its seems easier for the

Re: Feature request for rsync for running scripts

2005-07-20 Thread Evan Harris
On Tue, 19 Jul 2005, Wayne Davison wrote: On Tue, Jul 19, 2005 at 06:27:56PM -0500, Evan Harris wrote: Is it possible that this patch might be added to the mainstream release anytime soon? I was originally against the idea, but have softened my opposition after I saw how self-contained

Re: Feature request for rsync for running scripts

2005-07-19 Thread Andrew Burgess
On Tue, 19 Jul 2005 12:10:18 -0700, Evan Harris [EMAIL PROTECTED] wrote: I was wondering if others might find it useful to have a parameter in the rsync daemon config that would allow running a command on the server at session start or at successful rsync completion. For instance, this

Re: Feature request for rsync for running scripts

2005-07-19 Thread Evan Harris
On Tue, 19 Jul 2005, Andrew Burgess wrote: On Tue, 19 Jul 2005 12:10:18 -0700, Evan Harris [EMAIL PROTECTED] wrote: I was wondering if others might find it useful to have a parameter in the rsync daemon config that would allow running a command on the server at session start or at

Re: Feature request for rsync for running scripts

2005-07-19 Thread Wayne Davison
On Tue, Jul 19, 2005 at 02:10:18PM -0500, Evan Harris wrote: I looked in the patches directory, and see there is already a pre-post-exec.diff patch to allow for running scripts before and after the chroot, but I'm more interested in running after successful rsync completion than after the

Re: Feature request for rsync for running scripts

2005-07-19 Thread Evan Harris
I've just upgraded it to add more environment variables (such as module name, module path, host name, host IP, user name, exit status). I also changed where the post-rsync exec happens so that both the pre- and post-xfer are both now run by the user that runs the daemon (not the module's

Re: Feature request for rsync for running scripts

2005-07-19 Thread Wayne Davison
On Tue, Jul 19, 2005 at 06:27:56PM -0500, Evan Harris wrote: Is it possible that this patch might be added to the mainstream release anytime soon? I was originally against the idea, but have softened my opposition after I saw how self-contained and simple the code turned out to be. One