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 it's working, the diagnostics say it's fine. If it's not working, the diagnostics say it's fine. - A proposed addition to rules for realtime programming

Working...