I have a perl program which actually has 2 parts in it.
First part is running an external program and outputting to a file
system 'capture_data.exe > out.txt';
Second part is ,using the output file, I do some data processing
open(INFILE, "out.txt");
do some data massaging
do some prints
close INFILE;
it works perfectly fine in linux. when I run the program it would first run the data capture. then when I do ctrl-c , it will stop the data capture and do the second part of the program.
but when I run it in windows it would run the first part(data capture) and after I do ctrl-c it won't do the second part . Instead it gets error
"Terminating on signal SIGINT(2)"
can anybody help.
First part is running an external program and outputting to a file
system 'capture_data.exe > out.txt';
Second part is ,using the output file, I do some data processing
open(INFILE, "out.txt");
do some data massaging
do some prints
close INFILE;
it works perfectly fine in linux. when I run the program it would first run the data capture. then when I do ctrl-c , it will stop the data capture and do the second part of the program.
but when I run it in windows it would run the first part(data capture) and after I do ctrl-c it won't do the second part . Instead it gets error
"Terminating on signal SIGINT(2)"
can anybody help.