<?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: script command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879506#M279840</link>
    <description>If you are trying to use script to capture something like SAM, or some menu based application, then you are not going to have very good luck.&lt;BR /&gt;&lt;BR /&gt;script is really just meant for basic command line capture, nothing fancy.</description>
    <pubDate>Thu, 12 Oct 2006 23:28:29 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2006-10-12T23:28:29Z</dc:date>
    <item>
      <title>script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879505#M279839</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I used $script abc.txt command to store the screen output of various commands.&lt;BR /&gt;&lt;BR /&gt;But i saw various junk characters in the output. i think there are line feed, enter and other key strokes also which make screen output very difficult to understand.&lt;BR /&gt;&lt;BR /&gt;Is there any trick to filter out this or use some way to avoid keystroke/linefeed etc in output file ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Thu, 12 Oct 2006 23:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879505#M279839</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-10-12T23:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879506#M279840</link>
      <description>If you are trying to use script to capture something like SAM, or some menu based application, then you are not going to have very good luck.&lt;BR /&gt;&lt;BR /&gt;script is really just meant for basic command line capture, nothing fancy.</description>
      <pubDate>Thu, 12 Oct 2006 23:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879506#M279840</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-12T23:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879507#M279841</link>
      <description>hi Shiv,&lt;BR /&gt;&lt;BR /&gt;i agree with Patrick.&lt;BR /&gt;&lt;BR /&gt;Something i find useful in case i am waiting for a particular command is use something similar to:&lt;BR /&gt;&lt;BR /&gt;tail -f abc.txt | grep -i "command that i am waiting"&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 13 Oct 2006 00:55:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879507#M279841</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-10-13T00:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879508#M279842</link>
      <description>You may try dos2ux abc.txt &amp;gt; def.txt&lt;BR /&gt;&lt;BR /&gt;Yang</description>
      <pubDate>Fri, 13 Oct 2006 01:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879508#M279842</guid>
      <dc:creator>Yang Qin_1</dc:creator>
      <dc:date>2006-10-13T01:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879509#M279843</link>
      <description>Hi Shivkumar,&lt;BR /&gt;&lt;BR /&gt;cat abc.txt|grep -vE "\[|\^"&lt;BR /&gt;&lt;BR /&gt;rgs&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2006 02:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879509#M279843</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-10-13T02:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879510#M279844</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;script command  will not only give you about the command history , but also it will give the output of the commands . &lt;BR /&gt;Also if any menu driven program used in the session it will log that too, and junk and control characters will fill in the log file . so be careful to have much space on that filesystem to log entire activity. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Fri, 13 Oct 2006 03:14:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879510#M279844</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-10-13T03:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879511#M279845</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;For example if u are using on that session:&lt;BR /&gt;&lt;BR /&gt;$ ls -l &lt;BR /&gt;&lt;BR /&gt;It will log 'ls -l' along with the output of it.&lt;BR /&gt;&lt;BR /&gt;Secendly if you use 'sam' or 'glance' it will capture all the charcters with control characters.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Fri, 13 Oct 2006 03:16:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879511#M279845</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-10-13T03:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879512#M279846</link>
      <description>You are seeing exactly what was sent to/from the connection. You can filter out the special codes (due to menus and special character enhancements) with something like:&lt;BR /&gt; &lt;BR /&gt;cat -v abc.txt&lt;BR /&gt;or&lt;BR /&gt;tr -d ["\000-\011\013-\037"] abc.txt&lt;BR /&gt;or&lt;BR /&gt;tr -d ["\000-\011\013-\037\200-\377"] abc.txt&lt;BR /&gt; &lt;BR /&gt;but to make it look nice, you have to decide what 'looks nice'. That's because it all depends on what you intend for this file. It won't look like the terminal unless it is played back on the same type of terminal.</description>
      <pubDate>Fri, 13 Oct 2006 12:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879512#M279846</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-13T12:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: script command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879513#M279847</link>
      <description>Hi Shiv,&lt;BR /&gt;&lt;BR /&gt;Use SED with the following options...&lt;BR /&gt;&lt;BR /&gt;# ./script | sed 's/\x00//g' &amp;gt; abc.txt&lt;BR /&gt;&lt;BR /&gt;Shiv you are so kind in assigning points...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vinod</description>
      <pubDate>Sun, 05 Nov 2006 03:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-command/m-p/3879513#M279847</guid>
      <dc:creator>vinod_25</dc:creator>
      <dc:date>2006-11-05T03:26:39Z</dc:date>
    </item>
  </channel>
</rss>

