Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FTP commands send vs put

I am having some issues with a dos file we run over night that sends some files to another companies ftp server, The other company has checked their logs and we are connecting and are able to log in but no files are ever transferred. I was wondering if there was a difference between using the put command vs the send command. Do newer or older systems not support one or the other?

like image 785
user1329836 Avatar asked May 02 '12 19:05

user1329836


People also ask

WHAT IS PUT command in FTP?

Use the put command to upload files to Supply Chain Business Network. Use the Multiple Put ( mput ) command with the wildcard character ( * ) to upload multiple files. Some FTP clients require you to manually acknowledge each file name when executing the mput command.

What is CD command in FTP?

The following FTP Command will change the directory on the remote system and display the following message. ftp> cd /web 250 CWD command successful. ftp. The following FTP Command will find out the pathname of the current directory on the remote system and display the information.

What is the syntax of FTP?

Syntax FTP [-options] [-s:filename] [-w:buffer] [host] key -s:filename Run a text file containing FTP commands. host Host name or IP address of the remote host. -g Disable filename wildcards. -n No auto-login.


1 Answers

Linux's man page for ftp says that send is "a synonym for put". And MS's docs for their command-line client say that "The send command is identical to the put command".

Now, an FTP client is kinda free to do whatever it likes. It's the FTP protocol that's standardized; the command-line interface, not so much. (It's not even necessary that a client have a command-line interface; most GUI clients don't.) But for compatibility's sake, most clients that have a command-line interface tend to agree on most of the common commands. And the server doesn't know or care what command you typed in to send the file anyway; as long as it sees a STOR (the protocol-level command to send a file), assuming everything else works, the file will be transferred.

Seems like your problem is somewhere in the "everything else".

like image 77
cHao Avatar answered Sep 28 '22 23:09

cHao