in reply to Re^2: perl ssh keystroke
in thread perl ssh keystroke
my $pid = open (PROCESS, " | $process_that_needs_ending > $output_filename) or die "message";
system(some_process_done_in_parralel); -> this spawned process needs to happen in the lifetime of PROCESS and afterwards it needs killing by keystroke