Solved

ftp file transfer with garbage

Posted on 2002-05-09
8
361 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
 
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now