We have 2 linux RH servers (Server A and Server B), that were configured the same way. Same OS version, same ftp client, etc.
The ftp client that we had installe, was downloaded from rpmbone site and the filename is: ftp-0.17-53.el6.x86_64
The permissions were already set up equally, at a firewall level, for both servers. Both are on the same vlan 10.240.194.x/23
The FTP server configuration is unknown to us, because it's own by another company. So far they provided ip, user/passwd and told us to use active mode.
Server A connects to the ftp server without issues. It allows to pwd, ls, change directory and of course upload/download files.
Server B does connect as well. But when we try to list files/directories, find current dir location, or upload/download files we can't. So far the only thing we are able to do, is change to another directory.
Everytime we try, to do at least a simple ls,pwd we get this msg
As far as I understand, that ftp client, which is installed in both servers, doesn't have anything to be changed or configured.
Does anyone has an idea of what could be check/change to make the other server work. Sadly the FTP server, is not owned by our company. I tried to do some search, but haven't been lucky.
Any help is appreciated.
Last edited by rbatte1; 04-27-2017 at 06:02 AM..
Reason: Added CODE tags for output
Perhaps the ftp Server doesn't like ascii connections and your Server A defaults to a 'binary' connection at startup.
On both of your ftp clients, after ftp login, enter the 'binary' command and see what it allows you to do. Then enter the 'ascii' command and see what happens when you try to do things. In that way, compare your two ftp client configurations.
Perhaps ask your ftp server admins whether the use of ascii connection is permitted.
$BIN/sql.py "select * from reporting.V_AMSNB_OPT_PB_LOAD" | sed -n "2,$ p" | sed "s/ /,/g" > $DATADIR/OPT_PB_LOAD_AMSNB.csv
if
The processes that get created from the above code gets stuck...as in the processes get created but then never completes. (or at least we assume it never completes... (1 Reply)
I have one file .dat file on windows server containg the following text
"Bürki"
Now When I am using FTP (get) command from UNIX server the text is appering is as "Bürki"
I want to preserve the text in the file on UNIX server as it is in source file.
Could you please suggest some... (2 Replies)
Hi,
While editing a small text file with cat command i pressed ctrl-d to send eof, instead of coming out of cat command it echoed ^D to the screen. Same thing is happening to ctrl-c. After googling i found this is because of trap.
The problem is i m stuck in editing mode and cannot get the... (3 Replies)
Dears,
i want to execute unix commands through FTP session those commands like grep XXXXX file name > new file
tar new file
..... etc
Please let me know how to so
thank you (3 Replies)
Hello,
How to i determine via ftp commandline if files on ftp server is ascii or binary files. Like every other comon windows ftp program does it automatically.
regards
Thomas (5 Replies)
I have created get_list.bat file containing following line:
dir /B /O-d >file_list.txt
I am executing ftp command from Unix box and transferring get_list.bat file to windows server.
In my next ftp command I am trying to execute this test.bat file by entering this line:
get_list
or by... (9 Replies)
This is my worst nightmare in recent years!!!
I spent two days writing a proposal due tomorrow, ftp'ed the Word doc to a Unix machine in ASCII mode (i forgot to turn BIN on). Then I was trying to help a colleague download it and I accidently download the ASCII file back to the same dir on my... (1 Reply)
Hi ,
I am trying to ftp a file once using ascii mode and once binary mode
The ftp prompt shows different bytes transferred for each of them but at the destination server,each one of these files gets created with the same byte size and are identical.Can anyone shed any light on this
... (1 Reply)
In my shell script I am doing FTP along with other process. But all the statements after the "quit" command in FTP are not getting executed.
Example:
echo "This is a shell script to FTP a file"
#ftp -inv <server name> <<eol>> <logfilename>
#user <userid> <password>
#put <filename>
#quit... (2 Replies)
I have written a script to ftp a file from Unix to an NT machine to authenticate ftp login I have added the information into the .netrc file when logged in using ftp the commands are not executed. Does anybody know how to make the command execute once username and password have been provided using... (2 Replies)