General :: FTP "ASCII" Mode - RFC 959 - "File Transfer Protocol"

Jun 8, 2010

[ This thread is a result of <<mod edit---another thread>> RFC 959, "File Transfer Protocol", dictates:

Code:

3.1.1.1. ASCII TYPE

This is the default type and must be accepted by all FTP implementations. It is intended primarily for the transfer of text files, except when both hosts would find the EBCDIC
type more convenient.

The sender converts the data from an internal character representation to the standard 8-bit NVT-ASCII representation (see the Telnet specification). The receiver will convert the data from the standard form to his own internal form. In accordance with the NVT standard, the <CRLF> sequence should be used where necessary to denote the end of a line of text. Regardless of <<mod edit--another member's>> attempt to misinform and claim some sort of expertise in whatever, the ASCII mode works as expected.

Quote:

// From <<mod edit---another thread>>

So, go on, vi a document in linux, save it with a .txt extension then ftp get it from a windows machine. Make sure to open it with Notepad. I am writing this post from the very same Windows machine I used in order to conduct the exact experiment you are suggesting. The text file has been successfully converted. If it has not worked for you in about 20 years, I would suggest you start using an FTP server that does not suck, or for the very least one that respects the FTP standard. It is also possible that you used a client which does not use ASCII mode by default, in which case we are dealing with PEBKAC rather than with bad server software.

The purpose of this thread isn't to continue the odd debate regarding signatures that was starting in <<mod edit---another thread>> but rather to (hopefully) protect various users from trusting <<mod edit--another member>> in this certain (FTP) matter. Tinkster closed the thread just as I was preparing to post, thus giving <<mod edit--another member>> the last "word". Once again: he doesn't know what he is talking about, despite his "doing this for over a decade". I'm wondering if "this" means "spreading misinformation and reinforcing it with claims of being an expert".

View 2 Replies


ADVERTISEMENT

General :: How To Transfer File Using FTP Protocol For Distribution

Apr 13, 2010

I want to transfer file using ftp protocol. I m using following linux distribution.

PHP Code:
LSB Version::core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: OracleVMserver
Description: Oracle VM server release 2.2.0
Release: 2.2.0
Codename: n/a

When I run PHP Code:
[root@OFSMUW-VS-51 ~]# service ftp status
output is
ftp: unrecognized service

How would I install FTP? Do I need to install ftp server or client? Where would I get suitable ftp server/client for my distribution. Some rpm related to ftp are already in my machine please find the details

PHP Code:
# rpm -qa | grep ftp
ftp-0.17-35.el5
lftp-3.5.1-2.fc6
tftp-0.42-3.1.0.1

View 9 Replies View Related

Networking :: ASCII / Binary FTP Transfer Modes

Sep 14, 2009

I had a problem with the old good ascii/binary FTP transfer modes. I transferred some files (SQL scripting files, in which carriage returns DO matter) using FTP from a windows system to a linux system using filezilla "auto" mode, that should have resulted in ASCII mode for my sql files. These files are well formed and identical to the originals.

Then, someone else picked these files and moved them to another ftp server. I finally found that all <CR><LF> couples have been transformed in <CR><CR><LF>. I guessed that the problem was in the ASCII transfer mode - but, how comes that <CR><LF> => <CR><CR><LF>? I would have rather expected <CR><LF> to become <CR>.

View 2 Replies View Related

General :: RSYNC Error .tar.gz 14gb File / Transfer Huge 14 Gb File Over Network,vpn,wan Transfer?

Mar 10, 2010

i am trying to transfer a file from my live linux machine to remote linux machine it is a mail server and single .tar.gz file include all data. but during transfer it stop working. how can i work and trouble shooot the matter. is there any better way then this to transfer huge 14 gb file over network,vpn,wan transfer. the speed is 1mbps,rest of the file it copy it.

rsync -avz --stats bkup_1.tar.gz root@10.1.1.22:/var/opt/bkup

[root@sa1 logs_os_backup]# less remote.log
Wed Mar 10 09:12:01 AST 2010
building file list ... done
bkup_1.tar.gz
deflate on token returned 0 (87164 bytes left)
rsync error: error in rsync protocol data stream (code 12) at token.c(274)
building file list ... done
code....

View 1 Replies View Related

General :: Convert Binary File In To Ascii File Using Shell Script?

May 23, 2011

i am trying to convert a binary file in to ASCII using shell script. this file contains multiple types of data like string, number, bcd, etc.

View 5 Replies View Related

SUSE :: Transferring Files Using FTP In ASCII Mode?

Nov 5, 2010

I am trying to download a EBCDIC file from z/Os to UNIX using FTP in ASCII mode. The problem I am seeing is; when UNIX FTP Client issues a get; UNIX CPU goes to 100% CPU utilization when transferring a file in ASCII mode. I have done packet traces using wireshark and noted that z/OS Server is translating the file to ASCII before putting it on the wire, however when UNIX FTP Client gets the file I believe that the UNIX FTP Client is again translating the file to ASCII causing the 100% CPU utilization. I need verification that this is what is happening, and is there a way of getting around this other then transferring the file in binary mode then doing a EBCDIC

View 1 Replies View Related

Networking :: JPG Corrupted After FTP-upload In ASCII Mode?

Nov 23, 2010

I just uploaded JPG pics from a Win XP, through shell, on my FTP.When I downloaded them back (to a UNIX machine), they were all currupted and unreadable !After some researches, I found that Win XP's shell works by default in ASCII mode.

View 3 Replies View Related

General :: Sony PSP File Transfer Inaccurate Transfer Progress?

Jan 1, 2010

Having a bit of a issue with Debian Squeeze and transferring files to the Sony PSP..Hook up PSP to USB port and Debian mounts it..I go to drag a 125 meg mp4 to video folder..Copy windows takes about 10 seconds to transfer it..Exit USB mode and there is no video there. Go back into USB mode and look at video folder on the PSP memory stick and there is no video..It vanished. From another after copy progress closed I right clicked PSP and unmounted it..

It error-ed saying device was busy and could not unmount..Looking at light on PSP i see memory stick is still being written to..i wait for light to stop flashing..About a minute or so..Then am able to unmount it..Go to PSP video and theres the video ready to be watched. Debian isnt accurately showing the copy progress...Its showing complete when it isnt..I have to watch the light on PSP to know when it is truly finished.

View 3 Replies View Related

General :: Tool To Convert A File Of HEX To ASCII Character Set?

Feb 10, 2011

Is there a known tool to convert a file consisting of 2 byte Hex into ascii?

Note: - Maintain file offset listing in bytes code...

View 3 Replies View Related

General :: Accessing Network Files Using File Protocol

Nov 11, 2010

I'm running Red Hat Linux 4.5 in VMWare Server (virtual machine) on Windows XP (host machine). I'm using a loopback adapter to assign an IP address of 192.168.1.100 to the VM.How would I set up file protocol to access the VM's filesystem? Is it possible?

View 1 Replies View Related

General :: Send A File From The IRDA To A PDA Using IROBEX Protocol +commandline

Mar 11, 2010

Is there a simple command line to do this, in an easy way?

View 1 Replies View Related

Server :: Convert A Hex File To An ASCII File?

Sep 8, 2010

I have a file of 2GB size in hex form. This is a log file from the server which I converted to hex as the file got corrupted.Can anyone tell how to convert this hex file to ASCII?

View 1 Replies View Related

Red Hat :: Convert A Unicode File To Ascii?

Jul 1, 2010

I need to be able to convert a unicode file to ascii using red hat.

View 1 Replies View Related

Programming :: Prepend To ASCII Text File In C?

Jun 15, 2010

To start off I would like to acknowledge that I am not a very good C programmer and pretty much everything I know has been self taught through mostly trial and error. So forgive me if there is an obvious answer to my question, or if I don't immediately grasp the concepts involved in the possible solution.

Basically, I'm writing an application which will be creating log file entries rather rapidly (potentially hundreds per minute), and I would like each new line to appear at the top of the log file, rather than the end. Opening a text file in append mode is easy enough, but I can't seem to find any obvious way to do the opposite.

I have been looking online and it seems that there exists no standard way to do this, and I have only been able to find a few mentions of how somebody might achieve it. The most common method seems to be using two files and copying the data back and forth between them. This seems like it would be insanely I/O intensive with the number of lines I'm likely to be generating. If this is the best method to use, I will give it a shot; though I am not 100% clear on how to implement it, I am also open to any other ideas as to how to accomplish this, and I don't have to worry about portability since the program already uses Linux-only libraries. So calling out to sed or something is not necessarily out of the question (though I imagine performance would also be an issue there).

View 4 Replies View Related

Programming :: Convert Multiple File In Directory - Ascii To Hex In Perl ?

Apr 9, 2011

I have found a perl script that can convert single file: ascii to hex.

However I have thousand of file that I want to convert from ascii to hex.

Here is the perl script that convert single ascii file to hex in single line:

Quote:

So I would like to read multiple file from a directory.

Then the file will be have same name file with hex data.

Here is sample of the read and write directory file.

Quote:

View 3 Replies View Related

General :: File Transfer Through SSH?

May 25, 2010

I have a linux server and I have SSH Access to it.

How do I transfer my files to my desktop.

View 1 Replies View Related

General :: File Transfer By Using SCP?

Feb 14, 2011

how can we transfer the file from putty session to windows host which resides remotely....

View 1 Replies View Related

General :: Ms-dos 6.22 To File Transfer

Oct 4, 2009

We are having few computers in ms-dos 6.22 , we want to download file from Dos machine to redhat linux machine.

View 4 Replies View Related

General :: Transfer A Zip File That Contains .txt Files Using Ftp Put?

Sep 13, 2011

I am transferring a file from a linux pc going to a windows ftp server using "ftp put". My file is a zip file that includes .txt files inside it. Here is what's happening when I transferred this file :I used ftp put for transferring and found that my transferred zip file was corrupted and couldn't be opened on the ftp server.I found the solution for this on the internet. I needed to use 'binary' to make it right.

I transferred again using binary and then ftp put the zip file onto the other end. Yes, it worked. My zip file wasn't corrupted anymore and I could already opened it on the ftp server. But the problem remains on the .txt files inside it. Converting the file into binary made my .txt files to be distorted and unreadable. I read from the internet that .txt files need to use Ascii instead of Binary to be readable, but if I use ascii it would cause my zip file to be corrupted again. I need to successfully transfer a zip file that contains .txt files using ftp put.

View 5 Replies View Related

General :: Transfer A File Using Tftp Between Two PC's?

Apr 20, 2011

I am trying to transfer a file using tftp between two PC's. I have installed tftp-server, tftp, xinetd on both PC's. I am unable to transfer the file between the two systems. although the self transfer is working on both the system. I am getting the error "Transfer timed out"

cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer

[code]....

View 3 Replies View Related

General :: File Transfer From One FTP Server To Another

Feb 23, 2010

I have login of two ftp servers and I want to transfer the data from one ftp server to another ftp server. How can I do that, without downloading to local and then upload to other ftp?

View 7 Replies View Related

General :: SCP SSH Automatic File Transfer?

May 8, 2010

I wrote this script in attempt to set-up automatic file fetch from the server using SSH; I want to collect *.pdf files and would like this to happened automatically. However, when I run below script I keep getting prompted for a password, how to include password in the script and how to export list of transferred files into the log file in txt format

scp root@192.168.1.1:/var/www/html/Apps/*.pdf /media/DataBackup/Linux/imported/ &>/home/denis/Logs/remotefilefetch.sh.out

This script works to a point, however I am prompted for a password and log file is created but remains empty.

View 3 Replies View Related

General :: Transfer File To Windows?

Jan 18, 2011

I have to transfer a file from Linux box to a system either a windows or Linux(most probably windows). how to do that remember as a user i have limited access on the Linux box. So no SAMBA and no NFS. I can ping successfully that machine from my Linux box.

Is there any way to know what type of operating system machine have if i have only IP address and the machine is anywhere else in the world.

View 5 Replies View Related

General :: Transfer For The Execute File To Window?

Mar 26, 2011

I got a souce code in linux system. That's why my executeable file can be execute in linux.

Since that I can makefile in linux. But I'd like to make an executeable file in Window system the same.

But I didn't got any source code in Window system. Can I use any software to transfer my

execute file like "aaa" to "aaa.exe" in Window system and can be executed.

View 5 Replies View Related

General :: File Transfer Over A Serial Line?

May 3, 2011

I have 2 linux computers, and a serial line between them, one of them is only accessible through a serial line that has shell on it. How can I transfer files between the 2 computers?

I've heard that it can be done with some rz/sz magic...

Can I do the same trick with a pseudo-terminal instead of other computer?

View 1 Replies View Related

General :: Multiple File (Directory) FTP Transfer Via SSH

Jun 12, 2009

I'm trying to transfer a directory, and all it's sub-directories and their contents, to another FTP server via SSH. I'm using CentOS Server 4.4. I can 'put' a single file, but can't figure out how to do everything at once, which I need to do.

View 5 Replies View Related

General :: Measure File Transfer Speed?

Jun 15, 2010

I have one Linux server equipped with WiFi . I want to measure data rate speed on this connection . Is there any utility on my Linux that can measure data speed on one specific Ethernet connection when transferring large size files through WiFi connection?

View 2 Replies View Related

General :: Remote Access File Transfer

Feb 12, 2011

If I enable compression when I use ssh to run remote X11 applications on a local display.

View 1 Replies View Related

General :: Test PC To PC File Transfer Speed

Jul 7, 2011

I want a program that can be installed in two pc and measure speed of transfering files from one to another or any data measured in Mega bit

View 1 Replies View Related

General :: Cannot Open File In RW Mode - Filling Root File System With Log Files

Nov 3, 2010

I work for a company that makes portable devices running Linux and I was recently asked to make the underlying file system read-only for "security" purposes. Since the distribution is based on LinuxFromScratch, I know that very little writing happens at run time. So, even if the device runs on a usb flash device, I doubt that putting the root file system RO will be that beneficial. I am actually more concerned about a process actually breaking because it cannot open a file in RW mode than a process going rogue and filling the root file system with log files, etc. I'd really like to ear what kind of advantages disadvantages there really is with read-only file-systems.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved