Knowing EOT or EOF from a shell script

From: Osama Ahmed (osama@myrealbox.com)
Date: Fri Aug 15 2003 - 04:54:44 EDT


Hi Gurus,
This might be slightly off topic but I really need your help.

I have a group of binary files with a big variable file size
being transferred to a shared location(Solaris Machine).
The transfer is done first by allocating a file name and then
feed the bytes into it.

i.e:
ls -l
-rwxr-xr-x 1 root adm 166132 Aug 10 2003 FEED1

After 3 sec
ls -l
-rwxr-xr-x 1 root adm 168180 Aug 10 2003 FEED1

And so on.

My duty is to know(through a Shell script) when each file fully
and completely transferred to the shared location then transfer
it to my V880 server. ( I did not know the original size of the
file or its checksum !)

My questions:
  - Is there a way to know that the file is completely
transferred ? (like checking for an EOF byte in the binary
file-- I tried strings but no luck! )

  - Is there a command to know that the file is closed ?

Thanks and appreciate the help.

IWS

/Os
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:56 EDT