Re: NEWBIE Question: LUA wait() function?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: NEWBIE Question: LUA wait() function?
- From: Jorge Visca <xxopxe@...>
- Date: 2008年3月11日 23:04:06 -0300
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)
:)