How can I run ssh from a subversion post-commit script?

We have an svn server with several paths.

What I am looking for, and I may not have looked tough enough, is a post-fix script, which, when something is checked on a specific path, does ssh to another server and runs a bash script.

Any ideas on a quick and easy way to do this, or is the post-commit script already there?

+4
source share
1 answer
REPOS="$1" REV="$2" svnlook changed $REPOS -r $REV | grep "YourFilePattern" 1>/dev/null if [ "$?" == "0" ] ; then ssh user@example.com foo.bash fi 
+3
source

All Articles