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: (16) </ ... 11 12 13 14 15 [16] >/

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

reply to topic new topic new poll
Topic: MyDSL info parser, prototype< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: May 01 2008,15:01 QUOTE

'tried your latest version in dsl-3.4.11 using murgaLua from dsl-4.3 - works fine for me.

I like the option to download without loading
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 02 2008,13:28 QUOTE

^thehatsrule^: That's brilliant!  It took a few tries to get the syntax right, but it works using unset DISPLAY and sh -c

If you weren't so ugly I'd give you a hug =o)

Code Sample
function dlonly()
if myfile then
 local dirname=fltk.fl_dir_chooser("Save to...",nil,nil)
 if dirname and fltk.fl_filename_isdir(dirname)~=0 then
   Fl:check()
   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"]])
 end
end
end

Still need to test some more, and probably reconsider using && for every command (want to keep the term open regardless of failure)


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
76 replies since Jan. 13 2008,15:39 < Next Oldest | Next Newest >

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

Pages: (16) </ ... 11 12 13 14 15 [16] >/
reply to topic new topic new poll
Quick Reply: MyDSL info parser

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