lua-users home
lua-l archive

Re: NEWBIE Question: LUA wait() function?

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


For the ugly competition:
for i=1,10 do
 print(i)
 if os.execute("/bin/sleep 7") ~= 0 then break end
end
(the if ... break is for catching ctr-c while waiting)
:)

AltStyle によって変換されたページ (->オリジナル) /