<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How To Timestamp the KORN Shell History File in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763318#M497151</link>
    <description>Found solution for AIX as well :)&lt;BR /&gt;&lt;BR /&gt;All you have to do is, put the following line in .profile ( for global it can be in /etc/profile ).&lt;BR /&gt;&lt;BR /&gt;EXTENDED_HISTORY=ON&lt;BR /&gt;&lt;BR /&gt;To read the exact date &amp;amp; time of the command executed of a userâ  s history file, use the following option.&lt;BR /&gt;&lt;BR /&gt;env HISTFILE=&lt;USER_HISTFILE&gt; /usr/bin/fc -t&lt;BR /&gt;&lt;/USER_HISTFILE&gt;</description>
    <pubDate>Wed, 25 May 2011 06:15:42 GMT</pubDate>
    <dc:creator>Shibin_2</dc:creator>
    <dc:date>2011-05-25T06:15:42Z</dc:date>
    <item>
      <title>How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763299#M497132</link>
      <description>To Whom It May Concern: &lt;BR /&gt;&lt;BR /&gt;If your like me and you've been looking for the BASH 'HISTTIMEFORMAT' equivalent for HPUX KSH, well, here it is and I think this is what your E&amp;amp;Y auditors will be happy to see.&lt;BR /&gt;####################################&lt;BR /&gt;My .profile File&lt;BR /&gt;&amp;gt; cat .profile&lt;BR /&gt;set -u  # error if undefined variable.&lt;BR /&gt;trap "echo 'logout root'" 0  # what to do on exit.&lt;BR /&gt;trap 'date "+#%c" | read -s' debug  # timestamp .sh_history&lt;BR /&gt;export HISTFILE=/tmp/$LOGNAME`date +%m%d%y%H%M%S` # Put it in /tmp&lt;BR /&gt;&lt;BR /&gt;My .sh_history file&lt;BR /&gt;AKA /tmp/$LOGNAME030911134105&lt;BR /&gt;&lt;BR /&gt;&amp;gt; cat /tmp/f808636030911134105&lt;BR /&gt;&lt;BR /&gt;trap 'date "+# %c" | read -s' debug&lt;BR /&gt;# Wed Mar  9 13:42:24 2011&lt;BR /&gt;'date "+# %c"'&lt;BR /&gt;# Wed Mar  9 13:42:35 2011&lt;BR /&gt;history&lt;BR /&gt;# Wed Mar  9 13:42:45 2011&lt;BR /&gt;trap 'date "+# %c" | read -s' debug&lt;BR /&gt;# Wed Mar  9 13:43:02 2011&lt;BR /&gt;hisot&lt;BR /&gt;# Wed Mar  9 13:43:38 2011&lt;BR /&gt;thi&lt;BR /&gt;# Wed Mar  9 13:46:14 2011&lt;BR /&gt;history&lt;BR /&gt;# Wed Mar  9 13:46:16 2011&lt;BR /&gt;dog&lt;BR /&gt;# Wed Mar  9 13:46:55 2011&lt;BR /&gt;cat&lt;BR /&gt;ls -la&lt;BR /&gt;# Wed Mar  9 13:47:03 2011&lt;BR /&gt;cat /etc/passwd&lt;BR /&gt;# Wed Mar  9 13:47:09 2011&lt;BR /&gt;history&lt;BR /&gt;# Wed Mar  9 13:47:12 2011&lt;BR /&gt;cat /etc/group&lt;BR /&gt;# Wed Mar  9 13:48:34 2011&lt;BR /&gt;history&lt;BR /&gt;# Wed Mar  9 13:48:36 2011&lt;BR /&gt;cat /etc/fstab&lt;BR /&gt;# Wed Mar  9 13:48:43 2011&lt;BR /&gt;history&lt;BR /&gt;# Wed Mar  9 13:48:45 2011&lt;BR /&gt;vgdisplay&lt;BR /&gt;# Wed Mar  9 13:48:53 2011&lt;BR /&gt;history&lt;BR /&gt;# Wed Mar  9 13:48:57 2011&lt;BR /&gt;vi .profile&lt;BR /&gt;# Wed Mar  9 13:50:25 2011&lt;BR /&gt;id&lt;BR /&gt;# Wed Mar  9 13:50:28 2011&lt;BR /&gt;ps&lt;BR /&gt;# Wed Mar  9 13:50:29 2011&lt;BR /&gt;exit&lt;BR /&gt;# Wed Mar  9 13:50:30 2011</description>
      <pubDate>Wed, 09 Mar 2011 19:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763299#M497132</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2011-03-09T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763300#M497133</link>
      <description>Good to see.  Unfortunately, when I tried the option, got the following error:&lt;BR /&gt;&lt;BR /&gt;DEBUG : Max recursion reached it's limit, exiting&lt;BR /&gt;&lt;BR /&gt;I am unable to login. :(</description>
      <pubDate>Thu, 10 Mar 2011 02:33:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763300#M497133</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-03-10T02:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763301#M497134</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] your E&amp;amp;Y auditors will be happy to see.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] # Put it in /tmp&lt;BR /&gt;&lt;BR /&gt;So, anyone can play with it?  How happy does&lt;BR /&gt;that keep everyone?</description>
      <pubDate>Thu, 10 Mar 2011 03:02:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763301#M497134</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-03-10T03:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763302#M497135</link>
      <description>Shibin:&lt;BR /&gt;That's interesting.  Well if nothing ever worked then you've missed something but if you're saying it worked for awhile and then bombed then its of no use.  I'll see if I can recreate the same.&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Steven:&lt;BR /&gt;Please get back on your Thorazine medication and remember to take your afternoon nappy poo.  You'll feel better.</description>
      <pubDate>Thu, 10 Mar 2011 04:13:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763302#M497135</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2011-03-10T04:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763303#M497136</link>
      <description>Shibin:&lt;BR /&gt;&lt;BR /&gt;Hey, I've run this now all morning with multiple sessions in root on both pa-risc 11.23 and ia64 11.23 and see none of what you are reporting.&lt;BR /&gt;&lt;BR /&gt;?</description>
      <pubDate>Thu, 10 Mar 2011 16:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763303#M497136</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2011-03-10T16:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763304#M497137</link>
      <description>I think this is a great addition.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;I will play with it in the lab. Hopefully next week.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 10 Mar 2011 22:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763304#M497137</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2011-03-10T22:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763305#M497138</link>
      <description>&lt;!--!*#--&gt;Here's a slight mod that makes the history a bit easier to read (YYYYMMDD.HHMMSS):&lt;BR /&gt; &lt;BR /&gt;# trap 'date "+               # %a %Y%m%d.%H%M%S" | read -s' debug&lt;BR /&gt;5089                   # Thu 20110310.202507&lt;BR /&gt;5090    ls&lt;BR /&gt;5091                   # Thu 20110310.202509&lt;BR /&gt;5092    date&lt;BR /&gt;5093                   # Thu 20110310.202510&lt;BR /&gt;5094    bdfmegs&lt;BR /&gt;5095                   # Thu 20110310.202513&lt;BR /&gt;5096    boiotinfo&lt;BR /&gt;5097                   # Thu 20110310.202514&lt;BR /&gt; &lt;BR /&gt;Now the commands are visible on the left with the timestamps pushed to the right. This is the only line you'll need for .profile to add timestamps to each line in the shell history file. Thanks for posting this technique Michael.</description>
      <pubDate>Fri, 11 Mar 2011 01:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763305#M497138</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-03-11T01:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763306#M497139</link>
      <description>Michael, &lt;BR /&gt;&lt;BR /&gt;Thanks.  I have tested it in another PA RISC, works fine.  I hope I can use the same in my AIX machine :) .  &lt;BR /&gt;&lt;BR /&gt;Not sure, what happened to the earlier machine.  I have to boot into single user mode to recover that now. ( tested in root user  .. he he ).</description>
      <pubDate>Fri, 11 Mar 2011 02:23:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763306#M497139</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-03-11T02:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763307#M497140</link>
      <description>I used HP-UX 11iv1 PA-Risc box and worked good, great workaround!</description>
      <pubDate>Fri, 11 Mar 2011 11:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763307#M497140</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-03-11T11:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763308#M497141</link>
      <description>Yes.  I like this better.  &lt;BR /&gt;&lt;BR /&gt;-/root&amp;gt; grep trap .profile&lt;BR /&gt;&lt;BR /&gt;trap 'date "+               #%c" | read -s' debug      # timestamp .sh_history&lt;BR /&gt;&lt;BR /&gt;Thanks Bill Hassell.&lt;BR /&gt;&lt;BR /&gt;-/root&amp;gt; history&lt;BR /&gt;389                    # Fri 20110311.081338&lt;BR /&gt;390                    # Fri 20110311.081338&lt;BR /&gt;391     history&lt;BR /&gt;392                    # Fri 20110311.081341&lt;BR /&gt;393     history&lt;BR /&gt;394                    # Fri 20110311.081346&lt;BR /&gt;395                    # Fri 20110311.081354&lt;BR /&gt;396     history&lt;BR /&gt;397     vi .profile&lt;BR /&gt;398     . ./.profile&lt;BR /&gt;399                    #Fri Mar 11 08:14:35 2011&lt;BR /&gt;400                    #Fri Mar 11 08:14:35 2011&lt;BR /&gt;401                    #Fri Mar 11 08:14:35 2011&lt;BR /&gt;402                    #Fri Mar 11 08:14:35 2011&lt;BR /&gt;403                    #Fri Mar 11 08:14:35 2011&lt;BR /&gt;404     history&lt;BR /&gt;root@fxgpq506-/root&amp;gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2011 15:17:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763308#M497141</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2011-03-11T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763309#M497142</link>
      <description>Bill' s addendum looks good.&lt;BR /&gt;&lt;BR /&gt;Micheal;&lt;BR /&gt;the only thing I noticed that after exit root, history was being cleaned.&lt;BR /&gt;But you keep records under /tmp already, &lt;BR /&gt;so the second step I wonder if time stamp can be in same line with the command we issued ?&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2011 15:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763309#M497142</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-03-11T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763310#M497143</link>
      <description>Hakki:&lt;BR /&gt;&lt;BR /&gt;"...regarding the only thing after exit root has been cleaned..." - This has been the latest security recommendation unless you've got auditors like I have and they want time stamps on every root command.&lt;BR /&gt;&lt;BR /&gt;Anyway Hakki, this is why I put this command in:&lt;BR /&gt;&lt;BR /&gt;trap "echo 'logout root'" 0 # what to do on exit.&lt;BR /&gt;&lt;BR /&gt;...you didn't read the whole posting.&lt;BR /&gt;&lt;BR /&gt;As for having the time stamp on the same line as the command as well as the line number, i.e.,&lt;BR /&gt;&lt;BR /&gt;2Wed Mar 9 13:50:29 2011 ps&lt;BR /&gt;3Wed Mar 9 13:50:30 2011 exit&lt;BR /&gt;&lt;BR /&gt;....is the BASH / HISTTIMEFORMAT method that I was looking to reproduce for auditing purposes and have not been able to.&lt;BR /&gt;&lt;BR /&gt;But if you do please let me know. Thanks!&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763310#M497143</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2011-03-11T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763311#M497144</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;No points, not fishing.&lt;BR /&gt;&lt;BR /&gt;I tried it out in the lab. The Bill Hassell modification is working.&lt;BR /&gt;&lt;BR /&gt;I'd say as far as figuring out who did what to a system when, this could be useful, though obviously it increases the size of logs.&lt;BR /&gt;&lt;BR /&gt;We probably have some collection procedure in place and I'm worried some kind of SOX report might get unhappy with this hack.&lt;BR /&gt;&lt;BR /&gt;Still, its a great hack.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 11 Mar 2011 18:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763311#M497144</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2011-03-11T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763312#M497145</link>
      <description>AIX Korn shell trapped me.&lt;BR /&gt;&lt;BR /&gt;It's giving me the same error&lt;BR /&gt;&lt;BR /&gt;"DEBUG : Max recursion reached it's limit, exiting"&lt;BR /&gt;&lt;BR /&gt;Unable to login.  I tried different signals, but no time stamp records.  Could it be related to any kernel parameter ?  Any AIX gurus here ?</description>
      <pubDate>Wed, 16 Mar 2011 03:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763312#M497145</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-03-16T03:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763313#M497146</link>
      <description>&lt;P&gt;&amp;gt;Michael: But if you do please let me know. Thanks!&lt;BR /&gt;&lt;BR /&gt;Michael, I couldn't go further but I found that ,are you aware of the parameter EXTENDED_HISTORY in korn shell, I coukdn't find in my environment but if you check this out: &lt;BR /&gt;&lt;BR /&gt;To start recording the date and time that each command is executed, set the EXTENDED_HISTORY environment variable to ON:&lt;BR /&gt;export EXTENDED_HISTORY=ON&lt;BR /&gt;The CUT (Coordinated Universal Time) timestamp will be appended&lt;BR /&gt;to each line of the ~/.sh_history file.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;[broken link removed on &amp;lt;4/12/2017&amp;gt; by Mod]&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 12:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763313#M497146</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2017-04-12T12:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763314#M497147</link>
      <description>Hakki, &lt;BR /&gt;&lt;BR /&gt;I tested it in my AIX and HP-UX servers.&lt;BR /&gt;&lt;BR /&gt;HP-UX .. no luck. It's not recording any time stamps.&lt;BR /&gt;&lt;BR /&gt;But AIX, it records, but very difficult to identify what is the exact date and time (see below). :)&lt;BR /&gt;&lt;BR /&gt;ls -la #Ã #1300259962#Ã #&lt;BR /&gt;tail .sh_history #Ã #1300259975#Ã #&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.23 PA-RISC&lt;BR /&gt;AIX P570 6.1&lt;BR /&gt;&lt;BR /&gt;I think, it is depends on the ksh version we use.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Mar 2011 06:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763314#M497147</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-03-16T06:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763315#M497148</link>
      <description>if you are not consider security issue ,here is my workaround solution, at the end of the .profile ;&lt;BR /&gt;&lt;BR /&gt;# cat /.profile&lt;BR /&gt;...&lt;BR /&gt;## timestamp to history file ..&lt;BR /&gt;set -u # error if undefined variable.&lt;BR /&gt;trap 'date "+%c" | read -s' debug   # timestamp .sh_history&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/hist_reader&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# reader for ksh history from current with timestamp&lt;BR /&gt;&lt;BR /&gt;ADDRESS="$HOME/.sh_history"&lt;BR /&gt;cat $ADDRESS &amp;gt;&amp;gt; /tmp/temporal&lt;BR /&gt;sed 'N;s/\n/\ :       /' &amp;lt; /tmp/temporal&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;# /tmp/hist_reader&lt;BR /&gt;Tue May  3 15:32:43 2011 :       bdf&lt;BR /&gt;Tue May  3 15:32:45 2011 :       Bpsm&lt;BR /&gt;Tue May  3 15:32:48 2011 :       pwd&lt;BR /&gt;Tue May  3 15:32:52 2011 :       history&lt;BR /&gt;Tue May  3 15:32:55 2011 :       ./&lt;BR /&gt;Tue May  3 15:33:05 2011 :       ls&lt;BR /&gt;Tue May  3 15:33:25 2011 :       cat /.profile&lt;BR /&gt;Tue May  3 15:36:37 2011 :       pwd&lt;BR /&gt;Tue May  3 15:37:47 2011 :       ls&lt;BR /&gt;Tue May  3 15:38:31 2011 :       uptime&lt;BR /&gt;Tue May  3 15:38:38 2011 :       swapinfo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2011 11:40:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763315#M497148</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2011-05-03T11:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763316#M497149</link>
      <description>Wouldn't eksh (enhanced korn shell) also do the same with the added advantage of being able to capture to a syslog server or some WORM based storage?</description>
      <pubDate>Thu, 19 May 2011 12:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763316#M497149</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2011-05-19T12:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763317#M497150</link>
      <description>&amp;gt; Wouldn't eksh (enhanced korn shell) also do the same ...&lt;BR /&gt; &lt;BR /&gt;Sure. eksh is actually found on all HP-UX systems (optional on 11.31) but is named /usr/dt/bin/dtksh, also known as Korn shell version 1993. However, there will be a few incompatibilities, especially with poorly written scripts that do not have an interpreter line (that is #!/usr/bin/ksh or #!/bin/sh). ksh93 has a lot of nice features such as real (not just integer) numbers. Unfortunately, HP does not supply a general ksh93 man page but only documents the ksh93 Xwindow extensions. Here is a good reference:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.kornshell.com/doc/ksh93.html" target="_blank"&gt;www.kornshell.com/doc/ksh93.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2011 13:15:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763317#M497150</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-05-19T13:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How To Timestamp the KORN Shell History File</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763318#M497151</link>
      <description>Found solution for AIX as well :)&lt;BR /&gt;&lt;BR /&gt;All you have to do is, put the following line in .profile ( for global it can be in /etc/profile ).&lt;BR /&gt;&lt;BR /&gt;EXTENDED_HISTORY=ON&lt;BR /&gt;&lt;BR /&gt;To read the exact date &amp;amp; time of the command executed of a userâ  s history file, use the following option.&lt;BR /&gt;&lt;BR /&gt;env HISTFILE=&lt;USER_HISTFILE&gt; /usr/bin/fc -t&lt;BR /&gt;&lt;/USER_HISTFILE&gt;</description>
      <pubDate>Wed, 25 May 2011 06:15:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-timestamp-the-korn-shell-history-file/m-p/4763318#M497151</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2011-05-25T06:15:42Z</dc:date>
    </item>
  </channel>
</rss>

