The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Directory sizes loop optimization la_womn Shell Programming and Scripting 6 05-16-2008 11:05 PM
MV files from one directory structure(multiple level) to other directory structure srmadab UNIX for Advanced & Expert Users 4 09-13-2006 04:01 PM
Copying a Directory Structure to a new structure jhansrod UNIX for Dummies Questions & Answers 8 07-27-2005 06:24 AM
compare file sizes joli Shell Programming and Scripting 4 02-04-2005 06:52 PM
Directory sizes TRUEST UNIX for Dummies Questions & Answers 3 09-24-2003 09:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-04-2008
mannam srinivas mannam srinivas is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 30
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
  #2 (permalink)  
Old 04-05-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
If the goal is to have the same files on both servers, try rsync
  #3 (permalink)  
Old 04-07-2008
mannam srinivas mannam srinivas is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 30
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
  #4 (permalink)  
Old 04-07-2008
mannam srinivas mannam srinivas is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 30
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.
Sponsored Links
Closed Thread

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 12:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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