|
i work at a business where clients ftp files into our server. However, sometimes they stay logged on and don't log off, which is why i need to make this script. So the ftpd scripts you're talking about are only client side ( incomming) but my clients systems range from various types, that's why i need to have the script running on my end of the server. It's just using the standard linux ftp. The problem is, TCP/IP won't recognize the diff between a slow down or a complete disconnect and therefore will try indefinately to finish sending the file. So lets' say the file is 1000000kb and they start uploading, then you can do a listing say every 2 secs and the byte size will change, but now for instance if the user has only uploaded 999,999 k and the internet halts, and my timer, say.. 10 secs gives up then
ls -l <file> | awk '(print $5)' > size1 is going to equal size2. That's my problem. I'll check tomorrow to see if the permissions are different while uploading and if they change after the file is finished.
Any other ideas? I know my problem is quite unique...
Noodle.
|