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

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

reply to topic new topic new poll
Topic: Lua looping, Lua Flua no-clue-a< Next Oldest | Next Newest >
newOldUser Offline

Group: Members
Posts: 241
Joined: Oct. 2004
Posted: Sep. 24 2005,16:17 QUOTE

I've been playing with Lua, FLTK, Flua, whatever....

Took me a while to realize I was using the doco from version 5 but DSL has version 4 of the product. Does someone have a link to the doco or a tutorial for version 4?

I'd like to be able to read a value from /proc/net/wireless and display it in window. That part I already have done.  The problem I'm having is that I'd like to put this process in a loop that repeats every  n seconds.  Each iteration of the loop would update the display.  The loop would stop when a button is clicked in the window.

If anyone knows a site with some looping examples I'd like to see it.

Also... Is it possible to pass a Lua program a parm from the command line?

======== Note =========
The DSL Forum Search default is 'OR'
If you search for "cat dog" you will get all "cat" posts and all "dog" posts.
If you search for "cat AND dog" you will only find results that contain BOTH "cat" and "dog"
Add '*' for wildcards, " cat* and dog* "
Back to top
Profile PM 
mikshaw Offline

Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 24 2005,18:25 QUOTE
As far as I know, Lua in DSL isn't really Lua.  It uses the Lua4 syntax, but it's possible that its functionality is limited.

You can pass a parameter to a flua script by invoking it with the -f option:
#!/bin/flua -f

Back to top
Profile PM WEB 
1 replies since Sep. 24 2005,16:17 < Next Oldest | Next Newest >

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

reply to topic new topic new poll
Quick Reply: Lua looping

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