my $pid = fork(); if (!$pid) { exec("tcpdump ..."); # no more code here!!! } sleep(11); kill 9, $pid;