Knowing EOT or EOF from a shell script

2007-12-25 1:50:00

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

Comments

Got something to say?

You must be logged in to post a comment.