LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2010, 07:02 AM   #1
mohanpadamata
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Thumbs up WGET - How to use wild cards as a part of the filename


Hi Friends,

I am using wget to download files from a HTTPS site.My command goes as below. I have used * as wildcard to denote anything can be there between underscore and ".". Please advise on how to solve this.

/usr/sfw/bin/wget --no-check-certificate --user=LTSTSSB --password=pass -O temp.txt https://234.123.432.33:444/Reporting/File-To-Get_*.xml

Please advise if you require further information.

Many Thanks,
Mohan
 
Old 05-27-2010, 08:03 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
No expert here, but a quick scan of the wget man page seems to show that globbing wildcards only work with the ftp protocol. You'll probably have to find another way to generate a list of files to attempt to download and feed that to wget. You might also check out some other downloading programs like curl or httrack.

But I wonder if the limitation might not be in the http/s protocol itself. I don't think it allows clients to directly retrieve a list of all the files available on the server (or at least I've never seen anything like that...someone correct me if I'm wrong). If that's correct, then the only likely option would be to try all possible name combinations in a brute-force type of search.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rename command and wild cards dkrysak Linux - Newbie 8 08-27-2009 02:06 PM
Need information about wild cards shridhar005 Linux - Newbie 1 08-27-2008 01:41 PM
how to do * wild cards in python donnied Programming 6 08-19-2008 09:26 PM
Wild Cards using the find command -- grrr hpladd Linux - Newbie 9 07-14-2005 05:18 PM
More Players Supporting Wild-Cards? chime Linux - General 0 12-01-2004 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:36 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
Open Source Consulting | Domain Registration