SVN Update on Another Machine

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

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)
{
        execl("/usr/bin/svn",
                "svn",
                "update",
                "/var/path/to/files/",
                "--quiet",
                "--non-interactive",
                /*"--config-dir",
                "/home/person/.subversion",*/
                (const char*) NULL);
 
        return(EXIT_FAILURE);
}
 
  1. #include <stddef.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4.  
  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);
  16.  
  17.         return(EXIT_FAILURE);
  18. }
  19.  


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?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 33 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
 
cron
 

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