Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-04-2005, 03:34 AM   #1
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Perl/Linux: Syncronize tree structure on network

I'm writing and testing a distributed program, and need a way to syncronize the source code files on one machine with the source code on machines on the network. The idea is to have each remote machine build the project itself after having its source files updated.

I'm doing the actual implementation on one machine (let's call it A), but want the remote machines on my LAN to build and run it. The source code of the project consist of multiple folders. Therefore, I need a script (or some other way of doing this) that syncronizes the files and folders on the remote machines with the files and folders of machine A.

Does anyone know of a fast and effective way of doing this?
Old 11-04-2005, 04:42 AM   #2
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Original Poster
Rep: Reputation: 40
Okay, I think I figured it out. THIS is where the rsync-command (as someone mentioned in a reply to one of my posts) come in handy. Just sync the whole folder tree, and everything is fine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring the tree structure of a web server with apache2?? AQG Linux - Software 7 06-30-2005 03:47 PM
strange group and user set to "573" in linux-2.4.27 tree structure xround Linux - General 2 10-12-2004 11:09 AM
Preserving directory tree structure /etc/fstab Hikito Linux - Newbie 1 09-11-2004 04:07 PM
Recommendation for webpage tree structure Alan Powell Linux - Newbie 1 04-06-2004 02:07 PM
perl - writing a data structure to a file.. is it possible? paavaka Programming 4 07-14-2001 12:04 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration