process-command

process-command is a built-in function in `C source code'.

(process-command PROCESS)

Return the command that was executed to start PROCESS.
This is a list of strings, the first string being the program executed
and the rest of the strings being the arguments given to it.
For a network or serial process, this is nil (process is running) or t
(process is stopped).