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


in reply to starting a process in the background, with a twist

then kill it after a pre-defined amount of time

Alternatively you might check time() inside your process and finish it off gracefully by its own controls when it has aged that pre-defined amount of time, saving you the hassle of using signals from outside.

Cheers, Sören

  • Comment on Re: starting a process in the background, with a twist