Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check bytes of the File transferred.

Status
Not open for further replies.

ranjank

IS-IT--Management
May 9, 2003
176
IN
Hi,

Is there any way where in i can check the bytes of the file that i have tranferred from the remote location.I want to write a shell script for the same.

--Ranjan.
 
Hi

Yes, PHV, I know, this is Unix scripting forum, but I do not belive that tailing tools to those POSIX standards does much good for any system. I my opinion they are fairly outdated.

Feherke.
 
Hi

Annihilannic said:
or different versions of du...?
Of course they are different versions. [tt]du[/tt] was even moved to another package in meantime.

Sadly I do not know what setting could have a filesystem or how is affected by the kernel configuration. SO I think I have to accept that [tt]du[/tt] outputs differs.

Feherke.
 
I have to accept that du outputs differs
I think you now know why some people prefer to use standardised tools ...
 
Hi

No, in fact now I understand why the so frequent four letter answer... Annihilannic tried to help me, but I should read some manuals about filesystems first. :-(

Feherke.
 
Hi Anni,

I've tried some of your script, which is :
Code:
ftp -n remotehost << HERE | awk '$NF == "remotefilename" {print $5}'
  user username password
  dir remotefilename
HERE

And the result is :
KERBEROS_V4 rejected as an authentication type
150

I've tried normal ftp like :
ftp -n remotehost
user username password

And it's working.
 
What is the output of this part (i.e. without the awk)?

Code:
ftp -n remotehost << HERE
  user username password
  dir remotefilename
HERE

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top