<?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: recording a session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628445#M237103</link>
    <description>When You want to record command line information only then setup history setting as,&lt;BR /&gt;&lt;BR /&gt;--- /etc/profile ---&lt;BR /&gt;&lt;BR /&gt;set -o vi&lt;BR /&gt;export HISTFILE=/tmp/history_${LOGNAME}_$(date +'%d-%m-%y')&lt;BR /&gt;export HISTSIZE=2000&lt;BR /&gt;&lt;BR /&gt;If you want to log all command execution and results then,&lt;BR /&gt;&lt;BR /&gt;--- /etc/profile ---&lt;BR /&gt;script -a &lt;LOG-FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;You can also enable logging with putty and login client tools also.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/LOG-FILENAME&gt;</description>
    <pubDate>Mon, 19 Sep 2005 01:19:43 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-09-19T01:19:43Z</dc:date>
    <item>
      <title>recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628434#M237092</link>
      <description>Dear Sirs;&lt;BR /&gt;&lt;BR /&gt;Is there any command or way to record the command line session and its output in some file ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Sun, 18 Sep 2005 00:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628434#M237092</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-09-18T00:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628435#M237093</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;script &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;After you complete, simply type exit.&lt;BR /&gt;&lt;BR /&gt;never cat that file or vi during session, which will make a loop!!&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;TT&lt;BR /&gt;Note: Only echoed charactors are stored here, no need to worry about passwords entered during the session.&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Sun, 18 Sep 2005 00:43:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628435#M237093</guid>
      <dc:creator>Thayanidhi</dc:creator>
      <dc:date>2005-09-18T00:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628436#M237094</link>
      <description>If you use CRT or SecureCRT (or a similar program), you can use "log session" option to save entire session. There is an example in the attached JPEG file.</description>
      <pubDate>Sun, 18 Sep 2005 04:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628436#M237094</guid>
      <dc:creator>Hakan Aribas</dc:creator>
      <dc:date>2005-09-18T04:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628437#M237095</link>
      <description>HI Shiv ,&lt;BR /&gt;&lt;BR /&gt;u can use KT , Xterm or even hyper terminal or any other external software to save your session it u are doing telnet from outside .&lt;BR /&gt;&lt;BR /&gt;If u r doing it from a terminal then u can use script XYZ command to write all your command &amp;amp; output to XYZ file .&lt;BR /&gt;&lt;BR /&gt;Hope this should solve</description>
      <pubDate>Sun, 18 Sep 2005 04:20:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628437#M237095</guid>
      <dc:creator>VIKAS AGRAWAL</dc:creator>
      <dc:date>2005-09-18T04:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628438#M237096</link>
      <description>Hi Shiv ,&lt;BR /&gt;&lt;BR /&gt;1.&lt;BR /&gt;You can use Putty , a ssh client , which is a very good tool , and you can save entire session to a logfile , Just only thing needs to do is to enable logging , and provide a file name :&lt;BR /&gt;&lt;BR /&gt;Example: Enable logging and provide logfile name: server3.log  And all will be there , including your command output.&lt;BR /&gt;&lt;BR /&gt;Here it is :&lt;BR /&gt;&lt;A href="http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe" target="_blank"&gt;http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2. $HOME/.sh_history  you can set the history size to big enough.&lt;BR /&gt;&lt;BR /&gt;Cheeers,&lt;BR /&gt;&lt;BR /&gt;Raj.</description>
      <pubDate>Sun, 18 Sep 2005 08:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628438#M237096</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-18T08:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628439#M237097</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The simplest way would be to export history of all users to seperate files. It can be achived by adding this line to /etc/profile for all users or .profile of indivisual users for which you intend to do this.&lt;BR /&gt;&lt;BR /&gt;export HISTFILE="/var/log/history/$LOGNAME"&lt;BR /&gt;export HISTSIZE=1000&lt;BR /&gt;&lt;BR /&gt;Also create  the directory /var/log/history and seperate files for all users under it with write permissions for them.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Sun, 18 Sep 2005 11:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628439#M237097</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-09-18T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628440#M237098</link>
      <description>Connecting this question with another one you asked recently, powerbroker gives you this functionality, logging screen output along with the keystrokes in a local or remote log file.</description>
      <pubDate>Sun, 18 Sep 2005 21:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628440#M237098</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-09-18T21:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628441#M237099</link>
      <description>It depends on the kind of session logging you want? For generic and simple usage I would prefer script as it's available on all Unix systems. &lt;BR /&gt;&lt;BR /&gt;regards!</description>
      <pubDate>Sun, 18 Sep 2005 23:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628441#M237099</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-09-18T23:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628442#M237100</link>
      <description>Putty provides better logging capabilities for SSH and Telnet. But, it will be on the client side. If you want to have record at the server side, you can set HISTORY and HISTFILE in your shell. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Sun, 18 Sep 2005 23:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628442#M237100</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-09-18T23:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628443#M237101</link>
      <description>hi shiv,&lt;BR /&gt;&lt;BR /&gt;i can only think of script command for your requirement.&lt;BR /&gt;&lt;BR /&gt;man script for more detail.&lt;BR /&gt;&lt;BR /&gt;from the client, i use secure shell which log session of commands and outputs.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ssh.com" target="_blank"&gt;http://www.ssh.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Sun, 18 Sep 2005 23:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628443#M237101</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-09-18T23:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628444#M237102</link>
      <description>I'll say go by the script command because with History option you will have to supply the size and if the file increases you will lose the older data.</description>
      <pubDate>Mon, 19 Sep 2005 00:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628444#M237102</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-09-19T00:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628445#M237103</link>
      <description>When You want to record command line information only then setup history setting as,&lt;BR /&gt;&lt;BR /&gt;--- /etc/profile ---&lt;BR /&gt;&lt;BR /&gt;set -o vi&lt;BR /&gt;export HISTFILE=/tmp/history_${LOGNAME}_$(date +'%d-%m-%y')&lt;BR /&gt;export HISTSIZE=2000&lt;BR /&gt;&lt;BR /&gt;If you want to log all command execution and results then,&lt;BR /&gt;&lt;BR /&gt;--- /etc/profile ---&lt;BR /&gt;script -a &lt;LOG-FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;You can also enable logging with putty and login client tools also.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/LOG-FILENAME&gt;</description>
      <pubDate>Mon, 19 Sep 2005 01:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628445#M237103</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-09-19T01:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628446#M237104</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;i think We have some different solutions&lt;BR /&gt;through your Q.&lt;BR /&gt;if you want this permanently then history&amp;amp;histfile as the other members mentioned would be solution...&lt;BR /&gt;Also you have chance to record your session&lt;BR /&gt;as using your telnet software like crt&amp;amp;putty&lt;BR /&gt;etc...&lt;BR /&gt;there is also "script" on unix so when you&lt;BR /&gt;open session before starting just write&lt;BR /&gt;script so system records your executed commands into a file and when you exit the file closed and you can also put this command any user's profile and get these records...&lt;BR /&gt;&lt;BR /&gt;Goos Luck, &lt;BR /&gt;</description>
      <pubDate>Mon, 19 Sep 2005 01:50:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628446#M237104</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-09-19T01:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: recording a session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628447#M237105</link>
      <description>"script" is a ux command...&lt;BR /&gt;Good Luck,</description>
      <pubDate>Mon, 19 Sep 2005 01:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recording-a-session/m-p/3628447#M237105</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-09-19T01:52:08Z</dc:date>
    </item>
  </channel>
</rss>

