-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


On Jun 28, 2011, at 8:58 PM, Chad Perrin wrote:

> Obviously, scheduling something to happen every foo seconds is easy.
> What is a reasonably performant, simple way to schedule an operation =
to
> occur at a particular time of day (preferably specified by a =
particular
> time zone)?
>=20
> The first thing that comes to my mind is checking Time.now, checking =
the
> time between that and the desired time of day, then spawn a thread =
that
> sleeps for that length of time (because I need the program to do other
> things in the meantime).  Is there a better way to do this?

http://rufus.rubyforge.org/rufus-scheduler/ or as Ryan has written cron
or launchd on osx.

All the best, Sandor Sz=FCcs
- --



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQIcBAEBCgAGBQJOCjJFAAoJEIiuFRwovs5ri0YP/0KMETQUzE07rPvka7yOVtjV
kILhAHMrlh0nuIVxhus7SJbHwmhs4BvrnRoLVh45IO6cdQxb6kZv6Vcvqxg6YQkU
WizA5ungnF7HRj8UkI3EsKGz6gJDFCObsY7eRsz7wLMFHdPpnOoMb4J6NyBCe3eP
Op672nTYs5Un8VQs6FsexOzSj0+jPPO+fu/jbqinfPRkqorl2QeB+1fOniGmRySW
fHsI/vU87wsq9Yb8Qh/wfTqmNhr/ykBi0UXSpOIobkktFIyxY5qZXdloPJTJ/Tj9
FPfFjBW2bQ3PJN/3TxgG2QRFbTgrMnYTVyLPjtqIQYNVMaZwYuDngHcSqLcYoTd3
k3LUrnCdTI2jH4vd95AwO2UX+SE2QtfSa00dV924AbpxMmcLIsQxzZbdtN7rvkJ6
8XPlaKW1X0IVTRQaAUtcl/qipT3JDrOoO7Aybb5DLF23/puKyPGWRHIVA6Ohq/4d
U/sS5S6dl4QY9SGDoSm0hPpr81QO7k98Q60Pkzthodh9UhxefGdNVV07LigNxF5A
wNRcVvqrEY5M0zNPFa/37Dmpk3Q1v+l3EVFg6yZPsJ5qS5ZL/2wvOOP4mIaqkDFn
5sbOGkQQioBdYoRDHPUFx2Mk14+jY1gafSuzhbrQInTl/PU6/EZIdHkoMYrDMK0d
aud/DPOk0mCxXYKnF4Dt
=3D3LIu
-----END PGP SIGNATURE-----