Script to compare binaries


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to compare binaries
# 1  
Old 06-14-2011
Script to compare binaries

Hi All,

I am very new to scripting and wanted to write a script for comparison of folder including binary files like ear's and jars. Following is the job for which I need it:

1. Compare two folders recursively
2. Compare the binaries like ear's but exclude files like MANIFEST files
3. Display the result of the comparison flagging only the changed files.

I did try cmp but it only flags if there is a difference or now.

The ear's that I am comparing always have a new Manifest file in them when I compile but the classes remain the same. Hence I want to ignore the manifest files and just compare the classes.

Any help with this is much appreciated.
# 2  
Old 06-14-2011
Maybe rsync -av --exclude=MANIFEST --dry-run /path/to/source/ /path/to/target/ will solve your problem, see rsync man page for other options.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Migration of binaries from SunOS 5.5.1 to 5.11

HI, I have binary files that were generated on SUnOS 5.5.1 some years back. These programs were written in C. I want to run them on SunOS 5.11 (latest version of SunOS). Can I run them directly or will there be any porting challenges? (1 Reply)
Discussion started by: rajujayanthy
1 Replies

2. Infrastructure Monitoring

Nagios binaries for AIX 7.1

Hello All, I am new to Nagios. I have a requirement to monitor AIX 7.1 using Nagios xi, could any one guide me steps to go in right direction. I know Nagios doesn't have precompiled agent and plugin for aix 7.1. Appreciate your help (1 Reply)
Discussion started by: bsivavani
1 Replies

3. Shell Programming and Scripting

binaries PATH check in a ksh script

The situation is a data center with around 800 servers. Each server has installed one of these unix-like OS: rhel, sunos, aix, hp-ux. And we have to make scripts general enough to being able to be executed over all these servers. Furthermore, sometimes the scripts will be executed as a... (1 Reply)
Discussion started by: asanchez
1 Replies

4. Red Hat

Intel binaries on PPC

Is it possible to run binaries compiled for Intel platforms running on linux on a PPC system running on linux? I have a POWER4 IBM system and like to use it as a linux box with all desktop apps on it. (8 Replies)
Discussion started by: rein
8 Replies

5. Linux

nmap binaries for linux

Hi , I am exploring the nmap utility for Linux. I know that, nmap binaries are specific to the platforms e.g. nmap binaries will be diferent for Windows , AIX , Solaris and Linux platforms. Can anyone tell me , will the nmap binaries be different for different flavours of Linux such as... (1 Reply)
Discussion started by: jatin56
1 Replies

6. UNIX for Dummies Questions & Answers

Stripping down binaries

Hello, I am the CEO of Grand Tech Corporation. We are launching Linux NT and forgive me, but I do not know how to strip binaries down in Mandriva Linux. Can someone tell me a way to?:b: (2 Replies)
Discussion started by: Linux NT
2 Replies

7. Solaris

How to compare binaries

I have the same two source files. They MUST be compiled with -g debugger option. The binaries are different. But in fact the binaries work the same. How to compare them to know the are compiled using the same source code. In Linux it is enough to: strip --strip-all <file> and diff shows no... (2 Replies)
Discussion started by: mblank
2 Replies

8. UNIX for Dummies Questions & Answers

FTP is corrupting binaries

I'm ftping some binaries from a centos box to an old DEC machine. They're being transferred in bin, but they're being corrupted somehow because when I run file filename on the centos machine, it shows that it's an executable. But after the ftp and running the same command on the DEC, the file... (5 Replies)
Discussion started by: krisl
5 Replies

9. Solaris

compare two binaries.

Dear I want to know how i can compare between two binaries by using check sum command. (2 Replies)
Discussion started by: abu_hassan
2 Replies

10. UNIX for Dummies Questions & Answers

Windows Binaries

This is probably a really stupid question: Why doesnt windows binaries run in *nix? Is it the filesystem? or what? //Maestin (3 Replies)
Discussion started by: Maestin
3 Replies
Login or Register to Ask a Question