LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   FTP scripts check remote servers file (https://www.linuxquestions.org/questions/linux-general-1/ftp-scripts-check-remote-servers-file-533329/)

manish_meet_in 02-28-2007 01:11 PM

FTP scripts check remote servers file
 
Hi guys,

I want to ftp the file in linux from windows server. After getting file in linux server i want to check the file size with windows(source) server. If the file size are same with linux then i want to erase the windows file remotely from linux server.

Can you please help me how can i write a scripts to check
file size with Win server and erase the same.

Thanks in advance.

Manis

trickykid 02-28-2007 02:07 PM

I wouldn't rely on filesize, different filesystems might report different sizes. What you're probably wanting is MD5 sum checks.. but I don't know of a script or have not written one, that would take the fun out of learning to write one yourself.. ;)


All times are GMT -5. The time now is 10:48 AM.