The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-18-2006
Glenn Arndt's Avatar
Glenn Arndt Glenn Arndt is offline
Anomalous Lurker
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
If it's a text (ASCII) file, there is no way to tell if the file is completely transferred unless the customer provides a separate checksum file of some sort (i.e. a file specifying the file's size, contents, etc.) or if you can determine completeness based on the file contents (e.g., the last line of the file contains "EOF" or something). You can test for the file's existence, but a partially-transferred file would test "true" for existing, which doesn't help.
Reply With Quote