The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
copy files from remote server (B) to target server (A)? Beginer0705 Shell Programming and Scripting 4 07-29-2009 06:24 PM
Can a script runned in local server access remote server? luna_soleil Shell Programming and Scripting 3 02-26-2009 05:38 PM
Transfer file from local unix server to remote server indira Shell Programming and Scripting 2 05-03-2007 07:35 AM
Transfer file from local unix server to remote server indira HP-UX 2 05-02-2007 06:15 PM
Remote compare of folders sunilav Shell Programming and Scripting 1 04-04-2007 06:04 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-25-2009
BCJapan BCJapan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
How to compare a directory from both remote server

Hi ALL.

Wanted to ask on how to compare a directory from both remote server.

Example:
server0>$ diff -r men@server1:/main/dir1 men@server2:/main/dir1

Many thanks in advance.

Last edited by BCJapan; 09-25-2009 at 06:30 PM..
  #2 (permalink)  
Old 09-25-2009
BCJapan BCJapan is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
How to compare a directory from both remote server

Hi ALL.

Wanted to ask on how to compare a directory from both remote server.

Example:
server0>$ diff -r men@server1:/main/dir1 men@server2:/main/dir1

Many thanks in advance.
  #3 (permalink)  
Old 09-25-2009
mal.exe mal.exe is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 9
Can nfs provide some help for you ?

You could share the folder with nfs, and then diff the 2 folders
  #4 (permalink)  
Old 09-25-2009
johnalexhebert johnalexhebert is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 3
Unison

Unison supports synchronizing between two remote hosts. Kinda hard to use at first.

It is free and open source.
Unison File Synchronizer
  #5 (permalink)  
Old 09-25-2009
varontron varontron is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 110
assuming using ssh for remote login...

Code:
SVR1=`ssh men@server1 ls -1R /main/dir1`
SVR2=`ssh men@server2 ls -1R /main/dir1`
diff -r $SVR1 $SVR2

Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0