LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2007, 06:04 PM   #1
benny_j
LQ Newbie
 
Registered: Mar 2007
Posts: 16

Rep: Reputation: 0
FTP in Konsole gives corrupt data


Have U ever had a problem with the data downloaded from an ftp-server getting corrupted in some way, when using the ftp command in the Konsole? No report of failure was given on my end, nor at the ftp.

*I use Kubuntu 6.10 (Edgy) x86_64 on a HP Pavilion zv6000.

**Note that the file works fine when getting it from the same ftp with konqueror.

Any answer would B most welcome.

/Benny
 
Old 03-09-2007, 06:11 PM   #2
dannystaple
Member
 
Registered: Apr 2006
Location: London, Uk
Distribution: Ubuntu on Desktop
Posts: 121

Rep: Reputation: 15
Quote:
Originally Posted by benny_j
Have U ever had a problem with the data downloaded from an ftp-server getting corrupted in some way, when using the ftp command in the Konsole? No report of failure was given on my end, nor at the ftp.

*I use Kubuntu 6.10 (Edgy) x86_64 on a HP Pavilion zv6000.

**Note that the file works fine when getting it from the same ftp with konqueror.

Any answer would B most welcome.

/Benny
Benny,

When using the command line ftp from a shell, you may need to set the file mode. FTP file modes can be ascii or binary.
Ascii files will mean it expects texts, and may perform changes to line ending characters (0xD and 0xA) to adapt them to unix line endings, and may even optionally strip off the 8th bit. This will seriously mess up binary data.
Merely typing "bin" before using "get" to retrieve the file should set it to binary mode.
Does that help?

More often, when just grabbing an anonymous file from a site, I will use wget for it. I normally only use the full command line FTP client for sessions requiring passwords etc..

Danny
 
Old 03-10-2007, 04:08 AM   #3
benny_j
LQ Newbie
 
Registered: Mar 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you very much Danny!

That solved it!
There's a whole new world out there, and it's called Linux.

/Benny
 
  


Reply

Tags
ftp


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover corrupt data from SD Memory Card new2lin Linux - Desktop 1 12-28-2006 01:06 PM
Corrupt/missing data fat32 need recovered cormack Linux - General 3 04-12-2006 05:18 PM
Video files corrupt over ftp ixus_123 Linux - General 5 01-19-2005 05:14 PM
Suse 9.1 (amd64): CD-ROM data is corrupt? dbcoder Linux - Distributions 0 07-15-2004 11:10 AM
RPM data base always becaomes corrupt !!! qwijibow Linux - Software 4 12-01-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration