I am trying to run pocketsphinx from clojure. I wrote the following .sh script
unbuffer pocketsphinx_continuous -innmic yes > pipe, and I want to call this process using (shell / sh).
Unbuffer allows pocketsphinx to properly flush its data to the pipe, where it can be read line by line.
The problem I am facing is that I do not know how to kill the process correctly. He will work forever and will never regain control. If I kill the thread in which it works, the process that the sh command generated by it still works. The only thing I can think of is running killonpid
source
share