term-exec
term-exec is a compiled Lisp function in `term.el
'.
(term-exec BUFFER NAME COMMAND STARTFILE SWITCHES)
Start up a process in buffer for term modes.
Blasts any old process running in the buffer. Doesn't set the buffer mode.
You can use this to cheaply run a series of processes in the same term
buffer. The hook `term-exec-hook' is run after each exec.