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