Using this “spying” could be another way to do what I suggested here. Shell script based, no need touching the LPC code.