Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ftp file transfer with garbage

Posted on 2002-05-09
8
Medium Priority
?
384 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
[X]
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
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 300 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Starting up a Project
Loops Section Overview

610 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