Hot Diggety! Matt Lawrence was rumored to have written:
> 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.

If you don't mind capturing the output, sudosh could be an easy way to
do it.

-Dan
_______________________________________________
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/

Reply via email to