LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wget http with variables(Dynamic filenames) (https://www.linuxquestions.org/questions/linux-software-2/wget-http-with-variables-dynamic-filenames-4175427979/)

Kingtiger01 09-19-2012 08:50 AM

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...

billyoc 09-19-2012 09:16 AM

Quote:

Originally Posted by Kingtiger01 (Post 4784099)
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 -

Kingtiger01 10-24-2012 01:04 AM

Youre Amazing, Thanks billyoc.

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

Sorry for the late reply...


All times are GMT -5. The time now is 11:20 PM.