I have a systemtap script (loop.stp) that continuously runs and prints output periodically. I want to monitor this output from a perl script. Why does this code below not print anything? If I change this to /bin/ps, it does print the entire output when the command exits. I need it to print output as it occurs since the program will never end.
Code:
open(STAP, "/root/loop.stp");
while ( <STAP> ) {
print;
}