Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Comment Re:Don't use shell (Score 1) 360

Well, if you are to fetch a list of urls with more than 255 characters in the filename, you can't use wget -i long-urls.txt.
You have to create a script and use a -O option in it.

import os
b = 1
for a in file('long-urls.txt').readlines():
    os.system('wget -O' + b + ' ' + a)
    b += 1

Slashdot Top Deals

"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed." -- Albert Einstein

Working...