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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Directory sizes loop optimization la_womn Shell Programming and Scripting 6 05-16-2008 08:05 PM
MV files from one directory structure(multiple level) to other directory structure srmadab UNIX for Advanced & Expert Users 4 09-13-2006 01:01 PM
Copying a Directory Structure to a new structure jhansrod UNIX for Dummies Questions & Answers 8 07-27-2005 03:24 AM
compare file sizes joli Shell Programming and Scripting 4 02-04-2005 02:52 PM
Directory sizes TRUEST UNIX for Dummies Questions & Answers 3 09-24-2003 06:24 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2008
Registered User
 

Join Date: Apr 2008
Posts: 24
Smile to compare total directory structure and get sizes of all f on two different servers

Hello every one,


Iam newbie to this forum and shell programming &scripting.


i needed to compare each and every folder of two separate servers.

Actually I have copied some directory structure from one server to second server, to build on second server the files all should be copied from server one to 2 ,if not build will not be successful.

for this i wanted to a write a shell script.can somebody help me regarding this ,it is very urgent.


with regards,
mannam srinivas
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-05-2008
era era is online now
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,928
If the goal is to have the same files on both servers, try rsync
Reply With Quote
  #3 (permalink)  
Old 04-06-2008
Registered User
 

Join Date: Apr 2008
Posts: 24
Smile

Hello era,


Thank you veru much for u r reply, is this rsync is a tool ?

we don't have any tools ,actually i am checking manually all the file sizes on different servers ,i need a script could you pls help regarding this.


it's vey urgent,can somebody help me regarding this.


with warm regards,
mannam srinivas
Reply With Quote
  #4 (permalink)  
Old 04-07-2008
Registered User
 

Join Date: Apr 2008
Posts: 24
Smile

Hello era,
I found this tool helps me for my task.Thank you very much for your suggestion.


while installing rsync i am getting errors pls guide me how to solve threse errors.

The installation procedure i am following is as follows.

install procedure
=============

Once you have it, as root:
./configure
make
make install
You can simply run rsync as a daemon, or you can have it started automatically by inetd. In /etc/services add:
rsync 873/tcp
and in /etc/inetd.conf add:
rsync stream tcp nowait root /usr/bin/rsync rsync --daemon --config=/etc/rsyncd.conf


After executiing the make command i am getting following error.
Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
Failed to create rounding.h!
*** Error exit code 1

Stop.[/b][/size][/b]

could u pls suggest me the ways to proceed further.it's very urgent era.

with regards,
mannam srinivas.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0