Sponsored Content
Operating Systems Solaris Checksum different For Same file Created By Two processes Post 302966445 by fpmurphy on Friday 12th of February 2016 02:16:46 AM
Old 02-12-2016
Quote:
Originally Posted by siramitsharma
1. Does data in one as ascending and in other descending gives different checksums?
Yes. You will only get the same hash if both files are IDENTICAL in every way.
 

10 More Discussions You Might Find Interesting

1. Programming

UDP File Transfer Validation and Checksum

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

Checksum with file permissions and dates ?

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

will child processes be created when executing "ps"?

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

how to delete core file (file created due to apps crashed)

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

Get filesize and checksum of spooled file in a log file ...

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

Wireshark UDP checksum bad checksum

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

Needed script to FTP a File and generate a quality checksum file

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

Changing file permissions of a file created by another user

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

How to perform checksum of a file on remote server using Curl?

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

Need UNIX script to check checksum and dummy file creation.

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
Dpkg::Checksums(3)						   libdpkg-perl 						Dpkg::Checksums(3)

NAME
Dpkg::Checksums - generate and manipulate file checksums DESCRIPTION
This module provides an object that can generate and manipulate various file checksums as well as some methods to query information about supported checksums. EXPORTED FUNCTIONS
@list = checksums_get_list() Returns the list of supported checksums algorithms. $bool = checksums_is_supported($alg) Returns a boolean indicating whether the given checksum algorithm is supported. The checksum algorithm is case-insensitive. $value = checksums_get_property($alg, $property) Returns the requested property of the checksum algorithm. Returns undef if either the property or the checksum algorithm doesn't exist. Valid properties currently include "program" (returns an array reference with a program name and parameters required to compute the checksum of the filename given as last parameter) and "regex" for the regular expression describing the common string representation of the checksum (as output by the program that generates it). OBJECT METHODS
my $ck = Dpkg::Checksums->new() Create a new Dpkg::Checksums object. This object is able to store the checksums of several files to later export them or verify them. $ck->reset() Forget about all checksums stored. The object is again in the same state as if it was newly created. $ck->add_from_file($filename, %opts) Add checksums information for the file $filename. The file must exists for the call to succeed. If you don't want the given filename to appear when you later export the checksums you might want to set the "key" option with the public name that you want to use. Also if you don't want to generate all the checksums, you can pass an array reference of the wanted checksums in the "checksums" option. It the object already contains checksums information associated the filename (or key), it will error out if the newly computed information does not match what's stored. $ck->add_from_string($alg, $value) Add checksums of type $alg that are stored in the $value variable. $value can be multi-lines, each line should be a space separated list of checksum, file size and filename. Leading or trailing spaces are not allowed. It the object already contains checksums information associated to the filenames, it will error out if the newly read information does not match what's stored. $ck->add_from_control($control, %opts) Read checksums from Checksums-* fields stored in the Dpkg::Control object $control. It uses $self->add_from_string() on the field values to do the actual work. If the option "use_files_for_md5" evaluates to true, then the "Files" field is used in place of the "Checksums-Md5" field. By default the option is false. @files = $ck->get_files() Return the list of files whose checksums are stored in the object. $bool = $ck->has_file($file) Return true if we have checksums for the given file. Returns false otherwise. $ck->remove_file($file) Remove all checksums of the given file. $checksum = $ck->get_checksum($file, $alg) Return the checksum of type $alg for the requested $file. This will not compute the checksum but only return the checksum stored in the object, if any. If $alg is not defined, it returns a reference to a hash: keys are the checksum algorithms and values are the checksums themselves. The hash returned must not be modified, it's internal to the object. $size = $ck->get_size($file) Return the size of the requested file if it's available in the object. $ck->export_to_string($alg, %opts) Return a multi-line string containing the checksums of type $alg. The string can be stored as-is in a Checksum-* field of a Dpkg::Control object. $ck->export_to_control($control, %opts) Export the checksums in the Checksums-* fields of the Dpkg::Control $control object. AUTHOR
Raphael Hertzog <hertzog@debian.org>. 1.16.15 2014-06-05 Dpkg::Checksums(3)
All times are GMT -4. The time now is 11:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy