add date to the tail -f o/p of a command
2007-12-25 5:42:00
I am trying to record the commands run by root user, as this login has to be
given at time to many different people, to run different utilities,
My plan is to run the tail -f on .sh_history and store in another file. But
I need to put date as well in the o/p file,
basic idea is to record the commands run by root users along with time when
it was run.
So could you share with me any idea if you have how this can be done in
better way.
regards
Sonia.
Comments
Got something to say?
You must be logged in to post a comment.

