I\'d like to know if it\'s possible to find out the \"command\" that a PID is set to. When I say command, I mean what you see in the last column when you run the command \"t
Read up on the ps command and parse its output.
ps -p [PID] -o cmd
should do it