LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-19-2012, 07:50 AM   #1
Kingtiger01
Member
 
Registered: Nov 2006
Location: Watkins Glen, NY
Distribution: Ubuntu-8.04/Xebian
Posts: 56

Rep: Reputation: 16
Exclamation Wget http with variables(Dynamic filenames)


Hello, im trying to download Pre-Built nightly Kernels for my Distribution(Ubuntu) But im tired of manualy downloading them daily, as it takes too much time out of my day...

I would like to setup a Cron-Script to just download them daily, but there Filenames are Dynamic due to date and Version...

URL=http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/

Tested Ex: wget -r -l1 -A.deb http://kernel.ubuntu.com/~kernel-ppa...daily/current/

Result: Failed, empty Robots.txt|index.html

----------------------

I could really use a effective way, it does NOT have to be wget specific... any unix-like http downloader thats cli, and can be scripted...
 
Old 09-19-2012, 08:16 AM   #2
billyoc
LQ Newbie
 
Registered: Oct 2010
Posts: 22

Rep: Reputation: 23
Quote:
Originally Posted by Kingtiger01 View Post
Hello, im trying to download Pre-Built nightly Kernels for my Distribution(Ubuntu) But im tired of manualy downloading them daily, as it takes too much time out of my day...

I would like to setup a Cron-Script to just download them daily, but there Filenames are Dynamic due to date and Version...

URL=http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/

Tested Ex: wget -r -l1 -A.deb http://kernel.ubuntu.com/~kernel-ppa...daily/current/

Result: Failed, empty Robots.txt|index.html

----------------------

I could really use a effective way, it does NOT have to be wget specific... any unix-like http downloader thats cli, and can be scripted...
lynx -dump http://kernel.ubuntu.com/~kernel-ppa...daily/current/ | grep linux |grep -v "\[" | cut -d ' ' -f 4- | wget -i -
 
Old 10-24-2012, 12:04 AM   #3
Kingtiger01
Member
 
Registered: Nov 2006
Location: Watkins Glen, NY
Distribution: Ubuntu-8.04/Xebian
Posts: 56

Original Poster
Rep: Reputation: 16
Youre Amazing, Thanks billyoc.

Didnt even cross my mind to use lynx/links2 to get a index!

Sorry for the late reply...
 
  


Reply

Tags
dynamic, filenames, variable, wget


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
[SOLVED] How to get wget to deal properly with duplicate filenames like old times? comcastuser Linux - Software 8 06-19-2012 10:00 PM
Using wget or curl command to download from dynamic urls pratap.iisc Linux - Desktop 2 07-26-2009 10:55 PM
Dynamic filenames & cron champak Programming 6 11-27-2007 05:16 PM
wget mirroring issue - GET variables Freezy Linux - Networking 4 02-17-2006 06:31 PM
wget...url-encoded filenames linen0ise Slackware 1 10-26-2003 08:22 AM


All times are GMT -5. The time now is 07:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration