02-12-2016
Yes the files is different in terms of the data which is there, else there is no difference. Following are my queries:
1. Does data in one as ascending and in other descending gives different checksums?
2. If diff gives this difference then how do i do comparison in binary or ascii mode using hexdump
10 More Discussions You Might Find Interesting
1. Programming
Dear All
I have written a client server program for file transmission from one system to other using UDP.
Can i use the cksum number in the udp header to validate if the received packet is corrupted or not? If yes, how can i extract the header and validate it..
Also is there any way that... (3 Replies)
Discussion started by: iamcollins
3 Replies
2. UNIX for Advanced & Expert Users
find . \! -type p -exec cksum {} \; >> check.out
Okay i was able to get the checksum of the files of the directory and sub directories..how do I get the list with the checksum and the file permissions and dates in the same file...now this is driving me crazy...can anyone help me with this ? ls... (3 Replies)
Discussion started by: moe458
3 Replies
3. Shell Programming and Scripting
Hi
I'm trying to write some code to confirm there is only one running instance in memory like below:
/usr/ucb/ps -auxww | egrep -v 'grep |vi |tail |more |cat ' | egrep ${SCRIPT_NAME} | egrep -v " \-h| \-help| \-v"
But sometimes i found there is some child processes are are created as... (4 Replies)
Discussion started by: sleepy_11
4 Replies
4. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies
5. Shell Programming and Scripting
Hi All,
I have spooled some data in a file (a.dat, b.dat etc..) and after that I want to get the size and checksum of spooled file (a.dat, b.dat etc..) in a log file(file_info.log).
By the way I dont want lost the previous output file info(Append data).
View of log file that I want to... (5 Replies)
Discussion started by: ce_emre21
5 Replies
6. IP Networking
Hello
I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors.
Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies
7. Shell Programming and Scripting
hi all i want a script to FTP a file and should generate a quality checksum file
means when I FTP a file from one server to another server it should generate a QC file which should contain timestamp,no.of records in that file
Thanks in advance
saikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies
8. Shell Programming and Scripting
Hi,
I have used expdp for datapump. The .dmp file is created by the "oracle" user.
my requirement is to make a zipped file of this .dmp file.
What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
9. Shell Programming and Scripting
Hi, We have an AIX server and have CURL 7.40 installed in it.
We are struggling to perform checksum on the file present on the remote server (AWS). We want to validate the checksum on the file pre and post download to make sure that there is no issue with the file.
We are writing a shell... (0 Replies)
Discussion started by: Sanjay_13
0 Replies
10. UNIX for Beginners Questions & Answers
Hi Folks,
I need a UNIX script which will copy files(Table wise) from source directory to destination directory (Under table directory) and also creates 2 additional files after getting copied to destination directory with extension .pdy and .ldy , . pdy file will be zero byte file should get... (4 Replies)
Discussion started by: Nicks1412
4 Replies
LEARN ABOUT PHP
xdiff_file_rabdiff
XDIFF_FILE_RABDIFF(3) 1 XDIFF_FILE_RABDIFF(3)
xdiff_file_rabdiff - Make binary diff of two files using the Rabin's polynomial fingerprinting algorithm
SYNOPSIS
bool xdiff_file_rabdiff (string $old_file, string $new_file, string $dest)
DESCRIPTION
Makes a binary diff of two files and stores the result in a patch file. The difference between this function and xdiff_file_bdiff(3) is
different algorithm used which should result in faster execution and smaller diff produced. This function works with both text and binary
files. Resulting patch file can be later applied using xdiff_file_bpatch(3)/xdiff_string_bpatch(3).
For more details about differences between algorithm used please check libxdiff website.
PARAMETERS
o $old_file
- Path to the first file. This file acts as "old" file.
o $new_file
- Path to the second file. This file acts as "new" file.
o $dest
- Path of the resulting patch file. Resulting file contains differences between "old" and "new" files. It is in binary format and
is human-unreadable.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
xdiff_file_rabdiff(3) example
The following code makes binary diff of two archives.
<?php
$old_version = 'my_script_1.0.tgz';
$new_version = 'my_script_1.1.tgz';
xdiff_file_rabdiff($old_version, $new_version, 'my_script.bdiff');
?>
NOTES
Note
Both files will be loaded into memory so ensure that your memory_limit is set high enough.
SEE ALSO
xdiff_file_bpatch(3).
PHP Documentation Group XDIFF_FILE_RABDIFF(3)