Operating System - HP-UX
1753494 Members
5223 Online
108794 Solutions
New Discussion юеВ

Re: View date/time for commands executed in History file of a user Hi all,

 
SOLVED
Go to solution
Manoj1
Advisor

View date/time for commands executed in History file of a user Hi all,

Hi all,

There is a command on AIX unix to view which commands executed at particular date and time by a user.
env HISTFILE=/. /usr/bin/fc -t 1


What is the equivalent command on HP-UX Unix ?

Thanks,
Manoj
3 REPLIES 3
Shibin_2
Honored Contributor
Solution

Re: View date/time for commands executed in History file of a user Hi all,

There is no command in HP-UX. You may have to customize the .profile to get it.

Please read the below thread. It works only on K shell.

http://h30499.www3.hp.com/t5/Languages-and-Scripting/How-To-Timestamp-the-KORN-Shell-History-File/m-p/4763299#M29979

Regards
Shibin
Manoj1
Advisor

Re: View date/time for commands executed in History file of a user Hi all,

Anymore opinions ?
Patrick Wallek
Honored Contributor

Re: View date/time for commands executed in History file of a user Hi all,

Another way to do something like this is with a 3rd party product like PowerBroker.

http://www.beyondtrust.com/Beyond-Trust-Products.aspx?section=Beyond-Trust-Products

There's nothing inherently built into HP-UX that would do anything like this with out doing something like the thread above mentions.