lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

	Now that I could create the text file, I need to have the script
pause for a few seconds before resuming.

I checked the archives for this list:
===========
"NEWBIE Question: LUA wait() function?"
http://thread.gmane.org/gmane.comp.lang.lua.general/46268/focus=46287

"SLEEP"
http://thread.gmane.org/gmane.comp.lang.lua.general/69686/focus=69693
===========

Since I cross-compile Lua on Ubuntu and run it on a uClinux appliance,
I need a portable, compact solution to pause a script.

Which solution would you recommend? Compiling Lua with a POSIX
library, such as luaposix? Using "socket.sleep(0.2)"? Other?

I was thinking of using those options in CFLAGS:
-DLUA_USE_POSIX -DLUA_USE_LINUX

Thank you.