lua-users home
lua-l archive

[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)

:)