chaostic
Group: Members
Posts: 328
Joined: Mar. 2005 |
|
Posted: June 03 2008,05:27 |
|
Quote (mikshaw @ June 02 2008,22:34) | Quote | download only...only download the info file... |
Code Sample | os.execute(terminal..[[ -title "Downloading ]].. myfile.title..[[" -e sh -c "unset DISPLAY && cd ]]..dirname.. [[ && wget ]]..mirror..myfile.location..[[/]]..myfile.title.. [[{.info,.md5.txt,}]]..[[ && md5sum -c ]]..myfile.title.. [[.md5.txt && echo Press \"Enter\" to continue && read"]]) |
That should essentially be wget http://mymirror/extension{.info,.md5.txt,} Which *should* execute three instances of wget. It worked that way for me anyway. I typically use gnu wget, which allows for multiple files, but I tested this with busybox from DSL 4.3 |
"wget http://mymirror/extension{.info,.md5.txt,}" (brace expansion, iirc) should not launch multiple wgets. It should be the equivalent of "wget http://mymirror/extension.info http://mymirror/extension.md5.txt http://mymirror/extension".
I've been using {,} expansion quite frequently in recent times, so I'm just saying.
|