Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (8) </ 1 [2] 3 4 5 6 7 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

new topic new poll
Topic: DSL v4.4RC2< Next Oldest | Next Newest >
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: June 03 2008,05:27 QUOTE

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.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: June 03 2008,05:58 QUOTE

It needs to pass the "base norestore" test, which it does not.
We cannot require gnu-utils or coreutils be loaded for base applications.
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 03 2008,11:27 QUOTE

Quote
(brace expansion, iirc) should not launch multiple wgets.
Quite right, my mistake.  Well, that's a bummer. I'm certain I did have it working with busybox at some point, though.

That's going to make for one long execute string if it needs to be split up into three separate wget commands. Open to any better suggestions, as always.

Code Sample
   os.execute(terminal..[[ -title "Downloading ]]..
  myfile.title..[[" -e sh -c "unset DISPLAY && cd ]]..dirname..
  [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..[[.md5sum.txt]]..
  [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..[[.info]]..
  [[ &&  wget ]]..mirror..myfile.location..[[/]]..myfile.title..
  [[ && md5sum -c ]]..myfile.title..
  [[.md5.txt && echo Press \"Enter\" to continue && read"]])


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: June 04 2008,00:11 QUOTE

to mikshaw, roberts:

i'm was previously on 4.2.4.
when trying this RC (dirty install), lightygui.lua couldn't get started, probably because murgalua directory isn't there anymore.
i know fltk was added to lua, is this anything to do with murgalua?
is lua now actually murgalua?

i tried changing to #!/bin/lua but Fl libs couldn't be found.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: June 04 2008,00:35 QUOTE

#!/bin/lua
require("fltk")

The fltk is now separate and uses the more standard use of the require.
Back to top
Profile PM WEB 
36 replies since June 01 2008,19:08 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (8) </ 1 [2] 3 4 5 6 7 ... >/
new topic new poll
Quick Reply: DSL v4.4RC2

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code