add date to the tail -f o/p of a command



Hi Admins

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.
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Summary::add date to the tail -f o/p of a command
    ... (SONIA) ... I am trying to record the commands run by root user, as this login has to be ... I need to put date as well in the o/p file, ...
    (SunManagers)
  • Re: [opensuse] Mount windoze shares
    ... I can boot into failsafe mode, login as root user and startx. ... Subject: Mount windoze shares ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • RE: [opensuse] Sshd _config options
    ... public-ssh-key to the authorizedkeys of root, Which only the root user ... of the receiving machine can do. ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
    (SuSE)
  • Re: FedoraFAQ.org - commands for install of NVIDIA drivers do not work
    ... I'm following the FedoraFAQ.org instructions for installing the NVDIA drivers and two of the commands given for getting the drivers up and running don't work. ... When switching to root user, use "su -" instead of "su" so you will get the root environment variables that should help you with the missing commands in the PATH. ...
    (Fedora)
  • root-only commands
    ... Is there a list of (or a quick way of discovering) which commands in ... /usr/bin or /usr/sbin refuse to run unless invoked by the root user? ... File permissions usually allow all commands to be invoked by any user ...
    (comp.unix.solaris)