lua-users home
lua-l archive

Re: [5.1.4] Most portable solution to "sleep"?

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


On 2011年2月18日 14:21:14 +0100, Michal Kolodziejczyk <miko@wp.pl>
wrote:
>I would use socket.sleep() if you have it available (and probably you do).
>The "most portable" from the POV of the lua code is
>os.execute("/usr/bin/sleep 0.2"), but you need /usr/bin/sleep installed
>on both systems (which you probably have).
Cool, /bin/sleep is indeed available on the appliance. os.execute()
works fine.
Thank you.

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