Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ftp file transfer with garbage

Posted on 2002-05-09
8
373 Views
Last Modified: 2011-09-20
The following string appeared at the beginning of a text file:

1 ˆ ‚+Â ‚!‚ €5R ÅIaRóÌ$2EOÉ     HPÔ=&|„Ã<r

For a long time I've been using one script in DOS with ftp commands to send text files from windows98 to Unix.
But yesterday and today the received file showed OK unless those strange characters.

What can be causing this addition of characters ?
Help if you know please.

Ana

0
Comment
Question by:AME
8 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7000634
see bin and ascii command of ftp
0
 

Author Comment

by:AME
ID: 7000728
ahoffmann,
the mode in use is ascii.
The running script (a batch file) is something like this:

open 999.99.99.99
user ??? ???
user ??? ???
cd ???
ascii
mput \\server\???\mainname.*
close
quit

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7000879
is it ftp from DOS to UNIX?
I suggest to use bin always.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 2

Expert Comment

by:jonnin
ID: 7005793
bin mode will replace every end of line with ^m and the like for text files. Use ascii for text files. Make sure they ARE text files, wordpad docs and word files etc are binary files.  Edit and notepad should display the files with no funny chars if the file is truly text (so will "type" from cmdline).

You could have had a noisy line, or an error on one of the file systems, or some other one time error. Try a few times and see if it happens all the time or not.


0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7005991
It can also be a network error, which you cannot help. Especially if everything worked smoothly before and this error is in there for only one time... Networks get stressed once every while.

0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 7007238
> bin mode will replace every end of line with ^m and the like for text files.
NO. please read man-pages.
bin is the only posibility to transfer a file as is, without any, more or less sophisticated (mainly wrong), conversion.

Network might also be a problem, but is unusual, 'cause ftp is a TCP protocol, which should check for network errors.
0
 
LVL 4

Expert Comment

by:newmang
ID: 7007932
I know this is obvious but have you checked the file that you are ftp'ing to make sure that the crap you see whn copting the file isn't in the original file due to some form of corruption at some stage on the source system?
0
 

Author Comment

by:AME
ID: 7008235
The cause is not yet found. Maybe a firewall had helped it.
I accept ahoffmann comment as answer.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question