![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| On Premature Optimization | iBot | Complex Event Processing RSS News | 0 | 02-12-2008 02:20 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
Can't get checksum of the recived
I can't take a chacksum of the file that is received as I am grabbing a web page(ASP) running on a Windows server and the file which I ultimately have on my Solaris is a flat text file.
Rahul. |
| Forum Sponsor | ||
|
|
|
#9
|
||||
|
||||
|
hmm, guess checksum doesnt help then.
Rahul, what happens, if you dont check for the EOF, it is an asp page, right ?
__________________
War doesnt determine who is right, it determines who is left |
|
#10
|
|||
|
|||
|
Validation
Although it's an ASP page, when i have it on my machine it is converted into a flat text file which contains some records. If this file has a premature EOF, it means I have lost some records from this file. Thus i want to report this by validating this file for premature EOF.
Regards, Rahul. |
|
#11
|
||||
|
||||
|
There isn't any such thing as a premature EOF. When the file ends, that is where the EOF is written. Unix won't know how many records your file has or if it is written in a specific format.
Also, an ASP page is a file stored on the server that hosts it. It should be possible to get a checksum of the ASP file. When the file that you download gets generated, also get a checksum generated and store it in a file. And when you download the file, also download the file that holds the checksum, generate your own checksum of the file and compare the two. |
|
#12
|
||||
|
||||
|
Quote:
info md5sum says Code:
`md5sum' computes a 128-bit checksum (or "fingerprint" or "message-digest") for each specified FILE. Vino Last edited by vino; 01-02-2006 at 01:15 AM. |
|
#13
|
|||
|
|||
|
Thanks
Thanks all for your inputs.
Regards, Rahul. |
|||
| Google The UNIX and Linux Forums |