<?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: Capture Session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764658#M657448</link>
    <description>&amp;gt;Is there something which I can put in .bashrc or .cshrc to record commands and output and route it to a file?&lt;BR /&gt;&lt;BR /&gt;Well. in a real shell you set use "set -x" to record execution of commands.</description>
    <pubDate>Wed, 16 Mar 2011 02:44:57 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-03-16T02:44:57Z</dc:date>
    <item>
      <title>Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764652#M657442</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am in need to capture session data (commands and output which are executed during that login session) and put that in a file(date wise saved).&lt;BR /&gt;&lt;BR /&gt;Shell is tcsh. Has anyone setup something like that using script command?&lt;BR /&gt;&lt;BR /&gt;Please suggest.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Sun, 13 Mar 2011 20:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764652#M657442</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-03-13T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764653#M657443</link>
      <description>HI Allan:&lt;BR /&gt;&lt;BR /&gt;# man script&lt;BR /&gt;&lt;BR /&gt;Since 'script' is a standalone utility, you can execute it in/from any shell.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 13 Mar 2011 20:59:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764653#M657443</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-03-13T20:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764654#M657444</link>
      <description>As James said, you can use script command without any reservations, but looking at your post, I have a suspicion that you want to use this tool/contraption to log anf monitor the user activity. &lt;BR /&gt;&lt;BR /&gt;If this is your intention, keep in mind that, when you execute the script command, the typescript file (or any other name you choose) gets created by the ownership of the user, who is running the shell. Hence, it is open to modification by the user. So, if they chose to delete lines out of it, they can do it without anyone else noticing.&lt;BR /&gt;&lt;BR /&gt;If what you are doing is just to document what you are doing while in the shell, script utility is perfectly fine for it.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 14 Mar 2011 15:24:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764654#M657444</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2011-03-14T15:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764655#M657445</link>
      <description>I tried adding to my .bashrc but it goes into a loop and I am not able to exit out - &lt;BR /&gt;&lt;BR /&gt;script -a /tmp/log&lt;BR /&gt;&lt;BR /&gt;Is there a proper implementation of this command?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Tue, 15 Mar 2011 00:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764655#M657445</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-03-15T00:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764656#M657446</link>
      <description>&amp;gt;I tried adding to my .bashrc but it goes into a loop and I am not able to exit out&lt;BR /&gt;&lt;BR /&gt;I don't think you can.  The user must invoke it manually.&lt;BR /&gt;Is it the last command in .bashrc?</description>
      <pubDate>Tue, 15 Mar 2011 04:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764656#M657446</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-15T04:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764657#M657447</link>
      <description>yes its the last command.&lt;BR /&gt;&lt;BR /&gt;Is there something which I can put in .bashrc or .cshrc to record commands and output and route it to a file?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan.</description>
      <pubDate>Tue, 15 Mar 2011 22:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764657#M657447</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-03-15T22:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764658#M657448</link>
      <description>&amp;gt;Is there something which I can put in .bashrc or .cshrc to record commands and output and route it to a file?&lt;BR /&gt;&lt;BR /&gt;Well. in a real shell you set use "set -x" to record execution of commands.</description>
      <pubDate>Wed, 16 Mar 2011 02:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764658#M657448</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-16T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764659#M657449</link>
      <description>Thanks for replying Dennis, is there a tcsh shell equivalent of set -x?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Allan.</description>
      <pubDate>Wed, 16 Mar 2011 05:09:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764659#M657449</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2011-03-16T05:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764660#M657450</link>
      <description>&amp;gt;is there a tcsh shell equivalent of set -x?&lt;BR /&gt;&lt;BR /&gt;For the scummy C shell there is:&lt;BR /&gt;set echo&lt;BR /&gt;&lt;BR /&gt;See the "-x" command option.&lt;BR /&gt;And for -v: set verbose</description>
      <pubDate>Wed, 16 Mar 2011 07:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764660#M657450</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-16T07:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capture Session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764661#M657451</link>
      <description>#script /tmp/xyz.txt&lt;BR /&gt;#command 1&lt;BR /&gt;#command 2&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;#commandn&lt;BR /&gt;#exit&lt;BR /&gt;&lt;BR /&gt;you will have the output in /tmp/xyz.txt file&lt;BR /&gt;&lt;BR /&gt;you may refer man pages of script</description>
      <pubDate>Fri, 18 Mar 2011 04:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capture-session/m-p/4764661#M657451</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2011-03-18T04:05:36Z</dc:date>
    </item>
  </channel>
</rss>

