To check file size

Hi All,

I am in small problem..

i have one script which transfers some big files to my ftp usign normal command like put ....
my problem is how to check whether my file have been transferred successfully on ftp or not...

i know only inside ftp we have option like 'size' command which will give size of the file but how do i compare with my original file or is there any other option where i can check whether my file transfer was succefully done ...?

can anyone help me..?

Thanks
Sha

there are multiple options to check this

1) run checksum on the transferred file
2) parse the ftp operation log
3) use the size command and compare the size of the transferred file

Hi madhan,

Thanks for the quick replay....

your option i feel i can only the size command that i m able to see it in ftp help option..when i tried like below..
>ftp
>size filename(that have been transfered)
>file size.

but can you explain me little bit more how do i compare both inside ftp itself..

i can check local machine file size like below
>!ls -lrt
>!ls -lrt | awk '{print $6}'
> localfilesize

?????

Thanks in advance..

Sha