LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-28-2007, 01:11 PM   #1
manish_meet_in
Member
 
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.

Manis
 
Old 02-28-2007, 02:07 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

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


Reply


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 08:03 AM.

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