trigger command on successful upload?
PEnright at braums.com
PEnright at braums.com
Tue Jun 15 13:37:08 GMT 2004
Robert,
I think this would be a useful feature. I can think of how I could use a
feature like that. If you are successful let me know.
Thanks,
Paul Enright
Robert Helmer
<robert at roberthel
mer.com> To
Sent by: rsync at lists.samba.org
rsync-bounces+pen cc
right=braums.com@
lists.samba.org Subject
trigger command on successful
upload?
06/14/2004 10:57
PM
Hello,
I am working on implementing rsync to replace a server
distribution mechanism that currently works like this:
1) process new file on backend server
2) upload file to frontend server using scp or rsync over ssh
3) ssh to frontend server to trigger script
#3 is only used in a couple special cases
I have this tested and working:
1) (same as above)
2) upload file to frontend server using rsync (with patch to rsynd
to be verbose in error reporting)
3) (same as above)
I would like to be able to trigger a script for #3 instead of having
to ssh over (to make the frontend server a bit more autonomous, and
simplify the process).
I am already maintaining a fork of rsync for #2, so I don't mind
making modifications to the source. Ideally I'd like to have a
param on the client side like --trigger-script="script.sh", that
will trigger a script on the server side only if the upload is successful.
Does this seem reasonable, or am I just making things more complex
for myself? :)
Thanks!
Rob
--
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