

InterviewSolution
Saved Bookmarks
1. |
Solve : Unix FTP File Transfer Validation? |
Answer» I need to find out how to use Unix FTP to exchange pulling and putting files and validating the size of the files before allowing them to be processed. Does anyone know how to do this?I have linux server, while I WANT to ftp it gives FOLLOWING MESSAGE. must perform authentication before identifying user.just in CASE, here is an examp. of how to ftp the file from remote server... ## Get current files from 'ABC' FTP site. ####################################### clear echo "Please wait while downloading files..." ftp -in 111.111.11.11 <<-endftp user ababababa/cdcd333 binary get *.txt bye endftp ls if [ $? -NE 0 ] ; then echo "ERROR: Download of files failed." exit 1 else echo "File download complete." echo " " fi Quote I need to find out how to use Unix FTP to exchange pulling and putting files and validating the size of the files before allowing them to be processed. Does anyone know how to do this? when you say" validating the size of the files", do you mean 1) for upload => get size of local file, after upload, compare with destination file size? 2) for download=> check destination file size against a "known" size? if size is correct, then download ? |
|