SVN Update on Another Machine

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1587

Post 3+ Months Ago

Hi, I had a server (Server A) that held an SVN repository and it would post-commit hook a copy to a local directory (Server A) whenever something was commited by having post-commit point to a compiled executable c file that ran execl(). Problem is now the files that need to be post-commited to exist on a different server (Server B).

This is from the server (Server A) that holds the repo.
C Code: [ Select ]
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
int main(void)
                (const char*) NULL);
  1. #include <stddef.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  5. int main(void)
  6. {
  7.         execl("/usr/bin/svn",
  8.                 "svn",
  9.                 "update",
  10.                 "/var/path/to/files/",
  11.                 "--quiet",
  12.                 "--non-interactive",
  13.                 /*"--config-dir",
  14.                 "/home/person/.subversion",*/
  15.                 (const char*) NULL);
  17.         return(EXIT_FAILURE);
  18. }

Problem is I need to update this script (which is running on Server A) to run svn /usr/bin/svn update on (Server B). How would I do that?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.