The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Check file size and remove files srivsn Shell Programming and Scripting 5 05-28-2009 02:09 PM
How to check file size before and after FTP i.scientist Shell Programming and Scripting 1 09-13-2008 09:55 AM
Perl FTP - check file size rahulrathod Shell Programming and Scripting 1 02-20-2007 10:21 AM
file size check malaymaru Shell Programming and Scripting 2 10-19-2005 01:26 AM
Check file size alnita UNIX for Dummies Questions & Answers 6 06-20-2005 03:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-15-2008
Shahul's Avatar
Shahul Shahul is offline
Registered User
  
 

Join Date: Aug 2008
Location: India
Posts: 175
Wink To check file size

Hi All,

I am in small problem..

i have one script which transfers some big files to my ftp usign normal command like put ....
my problem is how to check whether my file have been transferred successfully on ftp or not...

i know only inside ftp we have option like 'size' command which will give size of the file but how do i compare with my original file or is there any other option where i can check whether my file transfer was succefully done ...?

can anyone help me..?

Thanks
Sha
  #2 (permalink)  
Old 09-15-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960
there are multiple options to check this

1) run checksum on the transferred file
2) parse the ftp operation log
3) use the size command and compare the size of the transferred file
  #3 (permalink)  
Old 09-15-2008
Shahul's Avatar
Shahul Shahul is offline
Registered User
  
 

Join Date: Aug 2008
Location: India
Posts: 175
Hi madhan,

Thanks for the quick replay....

your option i feel i can only the size command that i m able to see it in ftp help option..when i tried like below..
>ftp
>size filename(that have been transfered)
>file size.

but can you explain me little bit more how do i compare both inside ftp itself..

i can check local machine file size like below
>!ls -lrt
>!ls -lrt | awk '{print $6}'
> localfilesize

?????

Thanks in advance..

Sha
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0