Please help.
I am trying to run another program and capture the output then kill it in perl. Does anyone know a way to do it?.
The program I am trying to run will never stop, so I need to kill it somehow.
this wont work because program.exe will run forever so my script will hang then crash.
open(CMD, "program.exe |") or die "Can't run \n$!\n";
while(<LS_CMD>){ # each line of output is put into $_}