From: "Michael P. Soulier" Date: 2006-09-25T20:21:44+09:00 Subject: Re: alarm? --b8GWCKCLzrXbuNet Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 25/09/06 Logan Capaldo said: > % cat alarm.rb > trap("ALRM") do > puts "Alarm!" > end >=20 > Process.kill("ALRM", $$) >=20 >=20 > % ruby alarm.rb > Alarm! But that doesn't tell the OS to send a SIGALRM at a predefined time. I've found the timeout library, and implemented what I needed with that, but isn= 't the alarm() system call exposed in Ruby? It is in Perl and Python. Thanks, Mike --=20 Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein --b8GWCKCLzrXbuNet Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFFF7u1KGqCc1vIvggRApoRAJ92WmSxxvDYh5BPMWdfrj4O7kxBKwCgrfiR DCgUgStRfkSXYu5aKt3x+RA= =5MPP -----END PGP SIGNATURE----- --b8GWCKCLzrXbuNet--