Web anvari.org
Anvari.Org
» Anvari.Org → System Administration

Log Activities with No Bash History


Here is a little trick I came up with to log the activites of a a certain user to a filed named 'worklog'.

Hope that helps :)

$ perl -e 'while (true) { `w | grep fe0 | grep -vi bash >> worklog`; }'




Retrieved from http://www.anvari.org/cols/System_Administration/Log_Activities_with_No_Bash_History.html