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


in reply to Killing a shell script from within a perl script

use fork, exec, alarm, and kill ... or maybe check out POE.

IPC::Open2 and IPC::Open3 may help do the job as well.

-Paul