my $pid = open ( DUMP, "/path/to/prog argument=value |") or die $!; ... # Process input kill 2, $pid; ## send the process SIGINT