wget question
I will like to get a list of the files in the directory of an ftp site.
can I use wget to do it?
if yes, the how?
any other method that I can easily implement in bash script is welcome also.
Thanks
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.
Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.
Sponsored by ActiveState
| Containers—Not Virtual Machines—Are the Future Cloud | Jun 17, 2013 |
| Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer | Jun 12, 2013 |
| Weechat, Irssi's Little Brother | Jun 11, 2013 |
| One Tail Just Isn't Enough | Jun 07, 2013 |
| Introduction to MapReduce with Hadoop on Linux | Jun 05, 2013 |
| Android's Limits | Jun 04, 2013 |
- Containers—Not Virtual Machines—Are the Future Cloud
- Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer
- Linux Systems Administrator
- Introduction to MapReduce with Hadoop on Linux
- Senior Perl Developer
- Technical Support Rep
- Weechat, Irssi's Little Brother
- UX Designer
- One Tail Just Isn't Enough
- Android's Limits
- Reply to comment | Linux Journal
47 min 20 sec ago - Reply to comment | Linux Journal
47 min 47 sec ago - Replica Watches
3 hours 12 min ago - Reply to comment | Linux Journal
7 hours 23 min ago - on the path to understanding
7 hours 26 min ago - As a fisher,we know that a
1 day 2 hours ago - All I Say Is Worth Share!
1 day 4 hours ago - GeekSays
1 day 4 hours ago - thanks
1 day 7 hours ago - You should consider visiting
1 day 8 hours ago
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



You could also do this using
You could also do this using perl's Net::FTP module:
#!/usr/bin/perl use strict; use warnings; use Net::FTP; #Change your.ftp-host.com to your ftp domain my $ftp = Net::FTP->new("your.ftp-host.com", Debug => 0) or die "Can not connect: $@"; #Change UserName and PassWord to your login information $ftp->login("UserName",'PassWord') or die "Can not log in: ", $ftp->message; #If you want to list your root directory you can comment this out #Or change public_html to where you want to get a file list $ftp->cwd("public_html"); my @list = $ftp->ls($ftp->pwd); my $listing = "list.txt"; open(LISTING, ">$listing"); foreach my $line (@list) { print LISTING $line . "\n"; } close(LISTING)Use "ftp"
Use the ftp command. For example, to get the items in /pub/lj/listings from the LJ ftp server:
This will put the names into filelist.txt. Note that the sed command will produce incorrect results if any of the file names contain blanks. In that case you'll have to use a different method of extracting the file names from the raw results file (filelist.tmp).
Mitch Frazier is an Associate Editor for Linux Journal.