http://www.perlmonks.org?node_id=551491


in reply to running program?

A quick solution is to run your program under init(1), who will rerun it when the progam fails, or stop it completely if the program keeps respawning too quickly. See inittab(5) and init(1) for details.