what/who started that process
Is there anyway in linux to know who/what started a process - AFTER that process has complete?
|
In general, no. Once a process has completed, it is removed from the kernel's process queues.
If the kernel held on to memory about processes after they had run then it would eventually run out of memory, not to mention the fact that you would run out of PID numbers very quickly. While a process is running you can use the ps and pstree command to give you that kind of information; for more details see Code:
man ps; man pstree Code:
crontab -e Code:
* * * * * sh -c "date; ps axo user,pid,ppid,tty,command" >> ~/ps.log |
thanks, i thought that.
the tip is kewl. |
All times are GMT -5. The time now is 05:31 PM. |