<?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 for top output every week in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084095#M441141</link>
    <description>Thanks Dennis and shrikant.&lt;BR /&gt;&lt;BR /&gt;It helped.</description>
    <pubDate>Thu, 13 Dec 2007 09:03:08 GMT</pubDate>
    <dc:creator>GSB_3</dc:creator>
    <dc:date>2007-12-13T09:03:08Z</dc:date>
    <item>
      <title>script for top output every week</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084092#M441138</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I need a script which can send top output to one file every week on monday and keep four weeks data.&lt;BR /&gt;&lt;BR /&gt;Pls help&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 13 Dec 2007 07:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084092#M441138</guid>
      <dc:creator>GSB_3</dc:creator>
      <dc:date>2007-12-13T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: script for top output every week</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084093#M441139</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;To send a top output to a file you can use redirector.&lt;BR /&gt;&lt;BR /&gt;#top &amp;gt;&amp;gt;/tmp/top.out&lt;BR /&gt;&lt;BR /&gt;For every week on monday make entry of the scipt into crontab with timestamp as:&lt;BR /&gt;&lt;BR /&gt;* * * * 1 &lt;BR /&gt;&lt;BR /&gt;So, the rough entry in cron will look like :&lt;BR /&gt;&lt;BR /&gt;* * * * 1 path_of_script&lt;BR /&gt;&lt;BR /&gt;In above things each time top output will be append at the last of the /tmp/top/out file. If you want to create new file to each days output then it will need some looping logic into script.</description>
      <pubDate>Thu, 13 Dec 2007 08:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084093#M441139</guid>
      <dc:creator>Shrikant Lavhate</dc:creator>
      <dc:date>2007-12-13T08:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: script for top output every week</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084094#M441140</link>
      <description>&amp;gt;Shrikant: To send a top output to a file you can use redirector.&lt;BR /&gt;&lt;BR /&gt;For top(1), you should be using -f: top -f file&lt;BR /&gt;&lt;BR /&gt;To keep 4 weeks:&lt;BR /&gt;top -f file.0&lt;BR /&gt;mv file.3 file.4&lt;BR /&gt;mv file.2 file.3&lt;BR /&gt;mv file.1 file.2&lt;BR /&gt;mv file.0 file.1&lt;BR /&gt;&lt;BR /&gt;You need to seed the script for the first time.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;* * * * 1 path_of_script&lt;BR /&gt;&lt;BR /&gt;This runs top every minute.  And unless you pass options to top or use -f, it won't stop.&lt;BR /&gt;&lt;BR /&gt;So if you want to run it once at 1 am:&lt;BR /&gt;00 01 * * 1 path_of_script&lt;BR /&gt;&lt;BR /&gt;So GSB needs to define what he wants.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2007 08:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084094#M441140</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-12-13T08:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: script for top output every week</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084095#M441141</link>
      <description>Thanks Dennis and shrikant.&lt;BR /&gt;&lt;BR /&gt;It helped.</description>
      <pubDate>Thu, 13 Dec 2007 09:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084095#M441141</guid>
      <dc:creator>GSB_3</dc:creator>
      <dc:date>2007-12-13T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: script for top output every week</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084096#M441142</link>
      <description>Thanks Dennis for that minute option. I just slipped their. :D</description>
      <pubDate>Thu, 13 Dec 2007 09:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-top-output-every-week/m-p/5084096#M441142</guid>
      <dc:creator>Shrikant Lavhate</dc:creator>
      <dc:date>2007-12-13T09:12:09Z</dc:date>
    </item>
  </channel>
</rss>

