LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   linux command (https://www.linuxquestions.org/questions/programming-9/linux-command-294657/)

anirudh 02-25-2005 04:27 AM

linux command
 
how can i find the owner of jobs that have been executed already not currently running ones
using ps tells me the currently running jobs ,
but how do i find jobs that are already executed and its user

itsme86 02-25-2005 09:23 AM

The kernel doesn't track completed processes (except for zombies, but they're usually cleaned up).

frieza 02-25-2005 10:20 AM

that's right... but i'm sure you could find some third party software to log all programs as they are run. or eve write a script (or cron job) to do the following
ps -ef >> log.txt

jtshaw 02-25-2005 11:53 AM

Check out the documentation for your system logger. If you are already using one of the more advanced loggers (like metalog or syslog-ng) I think it should be pretty easy to process execution info dumped to a log file. Just beware, there is potentially going to be a TON of data there.


All times are GMT -5. The time now is 11:12 AM.