08-25-2016
Quote:
Originally Posted by
hicksd8
I agree with cero. Redhat says it's doing a ASCII mode transfer but it lies and does a binary mode transfer anyway. I think that you have to force this. Please post the content of /etc/vsftpd/vsftpd.conf
One quick question, you have mentioned here that Redhat is doing ASCII transfer, but the issue we face is when I transfer the file from windows to Linux and not Vice Versa.
Also,
as mentioned previously, in the command window of dos, during ftp tp linux, I had mentioned ascii. So the ftp client on dos must have sent the file in ascii mode OR here the target(Linux) FTP server dictated terms and forced in binary?
Regarding contents of /etc/vsftpd/vsftpd.conf, I cannot put it here due to restrictions but, can you please tell me what exact thing to look into it?
---------- Post updated at 10:52 AM ---------- Previous update was at 10:42 AM ----------
One more thing, even if Redhat Linux forces the use of Binary mode, I also faced the issue when sending a proper binary file to Redhat. It also had the dos chars. Hows that possible then?
Last edited by Albert_Pinto7; 08-25-2016 at 12:48 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm having some probs and i know in unix i can do a dos2unix command and fix it, and it looks like that may be my problem now, but linux doesn't have dos2unix of course, anything comparable? (4 Replies)
Discussion started by: kymberm
4 Replies
2. UNIX for Dummies Questions & Answers
I have a bunch of text files that currently reside on a red hat linux machine. I'd like to zip them up and copy them to a windows machine. I'm not sure about how to do this though since I believe zipping files up creates a totally different format that will be unreadable on windows. Is there any... (3 Replies)
Discussion started by: doublek321
3 Replies
3. UNIX for Dummies Questions & Answers
Hello all
It seams that in HPUX when Im using dos2unix program
I need to rename the file to new file and then back if I like to
Format the file.
Is there shorter way to do this?
Thanks (2 Replies)
Discussion started by: umen
2 Replies
4. Shell Programming and Scripting
Hi All,
p_ftp=dummy
time ftp -niv 192.0.0.2 << EOF
user dummy dummy
cd prt/$p_ftp
ascii
ls -ltr
quit
output is
-rw-r--r-- 1 500 500 5137 Mar 04 11:21 dummy.csv
can any one suggest how to get year while using ftp (1 Reply)
Discussion started by: Vrgurav
1 Replies
5. Shell Programming and Scripting
Hello dear community!
I have the following task to accomplish: there is a directory with approximately 2 thousand files. I have to write a script which would randomly extract 200 files on the first run. On the second run it should extract again 200 files but that files mustn't intersect with... (5 Replies)
Discussion started by: sidorenko
5 Replies
6. Linux
I am trying to FTP some files from a box running Windows XP to a Linux box and cannot get the right syntax for the file path. (5 Replies)
Discussion started by: Brian Miller
5 Replies
7. Shell Programming and Scripting
Hi everyone,
I have oracle 9i installed in Windows XP and i have ubuntu in VM WARE.
I would like to know how to connect to Oracle in windows xp from Linux through shel scripting...... (3 Replies)
Discussion started by: Zimbu
3 Replies
8. Shell Programming and Scripting
Hi All,
I have pearl script which will check and convert the file:
INFO("dos2unix_cmds".$#{$dos2unix_cmds});
if ( $#{$dos2unix_cmds} == 0 ) {
my $convert_cmd = $$dos2unix_cmds;
my $rename_cmd = $$dos2unix_cmds;
--conversion going here
else
INFO ("No need to... (8 Replies)
Discussion started by: saps19
8 Replies
9. Shell Programming and Scripting
is there any way to copy files from linux to windoes with out mounting ideally using a script in linux or windows which ever possible (4 Replies)
Discussion started by: robo
4 Replies
10. UNIX for Dummies Questions & Answers
Dear all,
I had a columned based file after processed from my script. In unix platform, my file is ok, with all columns sorted out nicely. But when i open in windows notepad, the columns are running out of order. Can some one help??
Thanks alot in advance (4 Replies)
Discussion started by: ymeyaw
4 Replies
TFTP(1) General Commands Manual TFTP(1)
NAME
tftp - trivial file transfer program
SYNOPSIS
tftp [ host ]
DESCRIPTION
Tftp is the user interface to the Internet TFTP (Trivial File Transfer Protocol), which allows users to transfer files to and from a remote
machine. The remote host may be specified on the command line, in which case tftp uses host as the default host for future transfers (see
the connect command below).
COMMANDS
Once tftp is running, it issues the prompt tftp> and recognizes the following commands:
connect host-name [ port ]
Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain connec-
tions betweeen transfers; thus, the connect command does not actually create a connection, but merely remembers what host is to be
used for transfers. You do not have to use the connect command; the remote host can be specified as part of the get or put com-
mands.
mode transfer-mode
Set the mode for transfers; transfer-mode may be one of ascii or binary. The default is ascii.
put file
put localfile remotefile
put file1 file2 ... fileN remote-directory
Put a file or set of files to the specified remote file or directory. The destination can be in one of two forms: a filename on the
remote host, if the host has already been specified, or a string of the form host:filename to specify both a host and filename at
the same time. If the latter form is used, the hostname specified becomes the default for future transfers. If the remote-direc-
tory form is used, the remote host is assumed to be a UNIX machine.
get filename
get remotename localname
get file1 file2 ... fileN
Get a file or set of files from the specified sources. Source can be in one of two forms: a filename on the remote host, if the
host has already been specified, or a string of the form host:filename to specify both a host and filename at the same time. If the
latter form is used, the last hostname specified becomes the default for future transfers.
quit Exit tftp. An end of file also exits.
verbose
Toggle verbose mode.
trace Toggle packet tracing.
status Show current status.
rexmt retransmission-timeout
Set the per-packet retransmission timeout, in seconds.
timeout total-transmission-timeout
Set the total transmission timeout, in seconds.
ascii Shorthand for "mode ascii"
binary Shorthand for "mode binary"
? [ command-name ... ]
Print help information.
BUGS
Because there is no user-login or validation within the TFTP protocol, the remote site will probably have some sort of file-access restric-
tions in place. The exact methods are specific to each site and therefore difficult to document here.
4.3 Berkeley Distribution 1Q TFTP(1)