Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-28-2007, 01:11 PM   #1
Registered: Apr 2006
Posts: 40

Rep: Reputation: 15
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.

Old 02-28-2007, 02:07 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 232Reputation: 232Reputation: 232
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..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent : Automated scripts require to check device file in hpux manish_meet_in Linux - Newbie 4 01-26-2007 01:45 PM
How can I uncompress a tar.gz file in a remote server using FTP? Dannt Linux - Networking 7 11-05-2006 04:53 PM
Date of file creation on the remote FTP host kender Programming 1 08-31-2006 06:37 PM
403 Forbidden on Virtual Servers with PHP scripts tonyboy Linux - Software 3 03-11-2004 10:43 AM

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration