Hi, Tom
When in binary mode, ftp effectively transfers a file verbatim. If the
file contains an 0x0d0a, ftp had better preserve it, because, after all,
the file might be an executable binary, for all ftp knows.
A useful command to convert text files to unix format is dos2unix.
Richard Hitt [EMAIL PROTECTED]
Tom Duerbusch wrote:
Well that worked. Obviously this has been a sufficient problem for
someone to write a program to fix it <G>.
Thanks
Tom Duerbusch
THD Consulting
[EMAIL PROTECTED] 7/11/2006 3:38 PM >>>
Tom have you tried dos2unix on it? If it's a text file, and you're
running into the problem of CR vs CRLF then that might fix it
Thomas David Rivers <[EMAIL PROTECTED]>
Sent by: Linux on 390 Port
<[email protected]>
To
[email protected]
cc
07/11/2006 03:18 PM
Subject
Re: ftp ascii file (pc to linux) has trailing garbage
Please respond to
Linux on 390 Port <[email protected]>
Tom,
How it shows up is a function of the program displaying it to you
(either your terminal window, your editor, or the 'more' command
or.. whatever.) It does sound like you have carriage returns
buried in there.
You might want to use the 'od' or 'hexdump' command to look at the
actual
bytes and see what it is.
You can avoid it by ensuring the transfer is ASCII (i.e. text), and
not
BINARY. One most FTP clients, you specify that you want
an ASCII transfer using the:
type ascii
command.
- Dave Rivers -
I've downloaded the current mksles9root.sh from the linuxvm.org
website.
When I ftp it from XP to Linux (using vsFTPd 1.2.1 on the Linux
side),
the file arrives but with a trailing character. Makes me think that
it
is a trailing crlf. But it shows up in Linux as an upper case M with
an
underline under it.
I've tried various forms of parms, such as ascii and binary, and the
file still arrives in Linux with this garbage character.
I think the last time I did this, I didn't have enough time to look
at
it, so I manually deleted that character from the end of each line.
How do I avoid this in the first place?
Thanks
Tom Duerbusch
THD Consulting
--
[EMAIL PROTECTED] Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390