LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2013, 04:30 AM   #1
miteshpant
LQ Newbie
 
Registered: May 2009
Posts: 24

Rep: Reputation: 0
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
 
Old 10-18-2013, 04:36 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Quote:
Originally Posted by miteshpant View Post
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).
 
Old 10-18-2013, 04:49 AM   #3
miteshpant
LQ Newbie
 
Registered: May 2009
Posts: 24

Original Poster
Rep: Reputation: 0
Is there any other way to write somefile.out . I mean what is it specified here for ?
 
Old 10-18-2013, 05:06 AM   #4
miteshpant
LQ Newbie
 
Registered: May 2009
Posts: 24

Original Poster
Rep: Reputation: 0
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 ?
 
Old 10-18-2013, 05:26 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
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
 
  


Reply

Tags
ftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp command line client - run multiple ftp commands in one line dlugasx Linux - Server 1 09-13-2012 07:24 AM
FTP / Command line ftp quesion 200mg Linux - Server 4 05-06-2008 04:21 PM
FTP Command Line (Scripting Multiple FTP gets) Critcho Linux - Software 3 01-05-2007 12:57 AM
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 04:26 AM
Command Line FTP erikcw Fedora 3 10-12-2004 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration