On Tue, Apr 13, 2010 at 11:16 AM, Matt Lawrence <[email protected]> wrote: > Due to some problems caused unintentionally by some users, we need to log > commands that are being run. Right now the other sysadmin has added some > neat things to log the previous command ("history | tail -1") before > printing a prompt and I was wondering if anyone knows of a good way to log > the commands before they are executed. Or, rather, to be able to grab the > command and do something when the return key is pressed, the actual > loggging part is easy. > > Suggestions? > > -- Matt
You might want to look into process accounting - this way you'll have a record of all processes, including any commands ran. Might be too much data for you to sift through... Best, -at _______________________________________________ Tech mailing list [email protected] http://lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/
