<?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 How can I log the command entered in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465581#M774311</link>
    <description>I am looking forward to log the commands that I have type on the shell into a log file, so that I can review what I had been done for that particular session. Like a trace back for me.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
    <pubDate>Fri, 17 Nov 2000 22:39:57 GMT</pubDate>
    <dc:creator>Oscar Koay</dc:creator>
    <dc:date>2000-11-17T22:39:57Z</dc:date>
    <item>
      <title>How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465581#M774311</link>
      <description>I am looking forward to log the commands that I have type on the shell into a log file, so that I can review what I had been done for that particular session. Like a trace back for me.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 17 Nov 2000 22:39:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465581#M774311</guid>
      <dc:creator>Oscar Koay</dc:creator>
      <dc:date>2000-11-17T22:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465582#M774312</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Consider using history option in K shell if you just want to log the commands used.&lt;BR /&gt;&lt;BR /&gt;U can use the command "script" to log the enitre session which includes in/out and errors.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pramod</description>
      <pubDate>Fri, 17 Nov 2000 23:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465582#M774312</guid>
      <dc:creator>Pramod_4</dc:creator>
      <dc:date>2000-11-17T23:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465583#M774313</link>
      <description>Oscar Koay :&lt;BR /&gt;&lt;BR /&gt; Add the following in your .profile. &lt;BR /&gt;&lt;BR /&gt;See the attachment.&lt;BR /&gt;Ensure your filesystem has long filenames enabled.</description>
      <pubDate>Fri, 17 Nov 2000 23:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465583#M774313</guid>
      <dc:creator>Madhu Sudhan_1</dc:creator>
      <dc:date>2000-11-17T23:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465584#M774314</link>
      <description>You can log all that you enter and the responses by using the "script" command.  It will launch a new shell under a new pty and record all tty output in a file.&lt;BR /&gt;&lt;A href="http://devresource.hp.com/STK/man/11.00/script_1.html" target="_blank"&gt;http://devresource.hp.com/STK/man/11.00/script_1.html&lt;/A&gt;</description>
      <pubDate>Fri, 17 Nov 2000 23:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465584#M774314</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2000-11-17T23:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465585#M774315</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For "logging" all entries and commands from a shell, you could add in your shells lines like this (in ksh):&lt;BR /&gt;&lt;BR /&gt;LOG=/tmp/log.txt&lt;BR /&gt;set -xv&lt;BR /&gt;exec 1&amp;gt;&amp;gt; $LOG 2&amp;gt;&amp;amp;1&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2000 08:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465585#M774315</guid>
      <dc:creator>JACQUET</dc:creator>
      <dc:date>2000-11-20T08:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465586#M774316</link>
      <description>1. You may check your .sh_history file if you are using korn shell.&lt;BR /&gt;&lt;BR /&gt;2. You may also use "/usr/sbin/script"&lt;BR /&gt;# script -a my_tracefile</description>
      <pubDate>Mon, 20 Nov 2000 14:19:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465586#M774316</guid>
      <dc:creator>f. halili</dc:creator>
      <dc:date>2000-11-20T14:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I log the command entered</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465587#M774317</link>
      <description>Boy, all these remarks on Korn shell make it appear that it's the only shell supporting history... : (&lt;BR /&gt;In all shells, a history variable set to a number means to record that many commands.  The histfile variable controlls where the file is located.&lt;BR /&gt;I.E.&lt;BR /&gt;BASH and KSH&lt;BR /&gt;&amp;gt;HISTORY=1024&lt;BR /&gt;&amp;gt;HISTFILE=$HOME/.history&lt;BR /&gt;CSH&lt;BR /&gt;&amp;gt;set HISTORY=1024&lt;BR /&gt;&amp;gt;set HISTFILE=$HOME/.history&lt;BR /&gt;For the fancy that want to save commands, use&lt;BR /&gt;HISTFILE=$HOME/.history-`date %d-m-%y`.&lt;BR /&gt;&lt;BR /&gt;I agree that though that the script command is probably what you want, however note that the script command is very litteral.  All garbage, typo's, etc are there.  Be prepared to se ps -ef }^H^H| grep ls ^M, etc.....&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Shannon</description>
      <pubDate>Mon, 20 Nov 2000 14:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-log-the-command-entered/m-p/2465587#M774317</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2000-11-20T14:27:22Z</dc:date>
    </item>
  </channel>
</rss>

