I need a check for whether or not a process is still running in my emacs term; started via (term "/bin/bsh") and then renamed to, eg. term-A.
I have tried (term-check-proc "term-A"), but it doesn’t show what I what I need, or at least, I don’t see how I can use it.
Trying to chase it down by a shell call to ps afx (or the like), is problematic if there is more than one emacs term active and running the same program, (which in my case, is quite quite possible)…
I really need to know if a process in a specific emacs term buffer, term-A, is running or not.
You can get a buffer’s process with
get-buffer-process:After I exit the shell in
*shell*, I getnilfor that buffer too.