From: MenTaLguY Date: 2005-11-04T03:24:48+09:00 Subject: Re: Continous running thread --=-tmFteUM5vDhWbdrOgqCc Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2005-11-04 at 03:02 +0900, iamscottwalter@gmail.com wrote: > Hi, >=20 > I have a simple task, I want to have a Thread that will every 2 minutes > perfom a task. I have tried: >=20 > thread =3D Thread.new do > while true > puts "Scott" > sleep 10000 > end > end >=20 > But it seems to only print "scott" once. How can I in Ruby have a > thread that will puts "scott" ervery 10 seconds? s/10000/10/ -mental --=-tmFteUM5vDhWbdrOgqCc Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDalYBcUNIGiXCc4MRAnRvAJ9CCkbclVw5MNYNSpnJ5Jz4u1iQjACcC9P7 iQnALAe+ZykXeVWEp1NqfXs= =WZ/s -----END PGP SIGNATURE----- --=-tmFteUM5vDhWbdrOgqCc--