LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2013, 10:58 AM   #1
beetlejelly
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
lftp pget multiple files


I'm using lftp do download files from a remote server.
The remote location has tons of files in the same directory. I know that I can use the "mirror" command to download every file in the directory, but I would like to download 3 or 4 files at the same time.
To download single files, I am currently using...
Code:
pget -n 5 file1.txt
I tried...
Code:
pget -n 5 file1.txt, file2.txt, file3.txt, file4.txt
This doesn't seem to work. obviously my syntax is incorrect. Any help would be greatly appreciated.
 
Old 10-19-2013, 07:22 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by man lftp
pget [OPTS] rfile [-o lfile]

Gets the specified file using several connections. This can speed up transfer, but loads the
net and server heavily impacting other users. Use only if you really have to transfer the
file ASAP. Options:

-c continue transfer. Requires lfile.lftp-pget-status file.
-n maxconn set maximum number of connections (default is taken from pget:default-n
setting)
This is for multiple connections for the same file.
 
Old 10-20-2013, 02:03 AM   #3
beetlejelly
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, I am using the -n flag for multiple connections to the same file for speed, but I would also like to download multiple files at the same time or in succession as well.
 
Old 10-20-2013, 08:13 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Did you read the man page for lftp?
 
  


Reply



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
LFTP - How to recognize files already downloaded laita Linux - Software 2 07-12-2013 04:46 AM
Lftp mirroring multiple folders techux Linux - General 20 05-07-2013 07:47 AM
lftp-client can't see folders/files on a wsftp server sigmaflex Linux - Software 4 10-25-2007 10:19 AM
lftp does not list files PhillipHuang Red Hat 1 12-28-2006 04:09 AM

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

All times are GMT -5. The time now is 01:51 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