Afficher un message
Vieux 16/09/2007, 19h04   #3
Lloyd Linklater
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: loop a program on exit?

Michael Linfield wrote:
> i want to have a program restart when its closed via the X button on the
> window / terminal
>
> any ideas?


A program cannot restart itself after it is closed down. I suggest a
parent program that runs the one that you want to have running. Then,
when the child program ends, the parent can restart it.

Caveat: Make sure that there is a way to end it. You do not want it to
turn into a "never-ending story."
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
 
Page generated in 0,05607 seconds with 9 queries