The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
On Premature Optimization iBot Complex Event Processing RSS News 0 02-12-2008 02:20 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 12-30-2005
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
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.
Reply With Quote
Forum Sponsor
  #9  
Old 12-30-2005
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
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
Reply With Quote
  #10  
Old 12-30-2005
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
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.
Reply With Quote
  #11  
Old 12-31-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
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.
Reply With Quote
  #12  
Old 01-01-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
Quote:
Originally Posted by rahulrathod
Vino,

How to use checksum? When i type checksum on my command prompt, it says command not found. I am using a Sun Solaris 5.8
I am not sure about the availability of md5sum on solaris. But check it out.

info md5sum says
Code:
   `md5sum' computes a 128-bit checksum (or "fingerprint" or
"message-digest") for each specified FILE.
Like blowtorch has mentioned, asp files also reside on the server side. So it should(?) be possible to use the md5sum solution.

Vino

Last edited by vino; 01-02-2006 at 01:15 AM.
Reply With Quote
  #13  
Old 01-02-2006
Registered User
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 156
Thanks

Thanks all for your inputs.

Regards,
Rahul.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0