LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 03:36 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 03: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, 04: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, 04:26 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

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



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 06:24 AM
FTP / Command line ftp quesion 200mg Linux - Server 4 05-06-2008 03:21 PM
FTP Command Line (Scripting Multiple FTP gets) Critcho Linux - Software 3 01-04-2007 11:57 PM
what is different with Ftp From browser and Ftp from command line zahra79 Linux - Networking 2 06-22-2005 03:26 AM
Command Line FTP erikcw Fedora 3 10-12-2004 09:44 AM

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

All times are GMT -5. The time now is 08:44 AM.

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
Open Source Consulting | Domain Registration