LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP command line structure (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-command-line-structure-4175481267/)

miteshpant 10-18-2013 03:30 AM

FTP command line structure
 
Can any one tell me the meaning of the following command

ftp -p ftp://user:PASS@ftp.something.domain.com/SOMEFILE.out

druuna 10-18-2013 03:36 AM

Quote:

Originally Posted by miteshpant (Post 5047951)
Can any one tell me the meaning of the following command

ftp -p ftp://user:PASS@ftp.something.domain.com/SOMEFILE.out

-p sets passive mode (see manual page)

The rest is a normal URL which includes login credentials (user:PASS part, separated from rest by @).

If ftp -p ftp://ftp.something.domain.com/SOMEFILE.out would be used then a user and password would be asked (by pop-up from browser or on the command line when using CLI).

miteshpant 10-18-2013 03:49 AM

Is there any other way to write somefile.out . I mean what is it specified here for ?

miteshpant 10-18-2013 04:06 AM

Actually I am giving this command and its executing from one server but gives error

Name or service not known

from another.

However when i do

ftp -p ftp.something.domain.com

I am able to continue fine

can anyone help ?

druuna 10-18-2013 04:26 AM

The ftp command can be different on different distro's.

The default ftp command is rather simple and doesn't allow for what's being shown in your first post.

Have a look at the ftp manual page for the available options (man ftp)

If all you want to do is fetch a file I would suggest using wget instead:
Code:

wget ftp://user:PASS@ftp.something.domain.com/SOMEFILE.out


All times are GMT -5. The time now is 07:05 PM.