<?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: used the top with cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683652#M53661</link>
    <description>Actually, there is a way. Inside your cron script, do a top -f /var/tmp/tfile and then mail your tempfile.&lt;BR /&gt;&lt;BR /&gt;You should of course, create a temp file name, mail it, and then remove the temp file but top -f filename is the key. Top will run once and exit.&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Mar 2002 20:49:06 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-03-14T20:49:06Z</dc:date>
    <item>
      <title>used the top with cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683647#M53656</link>
      <description>I try to put the top in the cron, the error that I recived in mail root is.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry, I need to know a more specific terminal type than 'unknown'.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 20:41:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683647#M53656</guid>
      <dc:creator>Isaac_4</dc:creator>
      <dc:date>2002-03-14T20:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: used the top with cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683648#M53657</link>
      <description>You probably need to modify the shell script you are running in the cron. &lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;TERM=vt100 ; export TERM&lt;BR /&gt;top -f &amp;gt; /foo/top.out</description>
      <pubDate>Thu, 14 Mar 2002 20:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683648#M53657</guid>
      <dc:creator>Robert Gamble</dc:creator>
      <dc:date>2002-03-14T20:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: used the top with cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683649#M53658</link>
      <description>Top is supposed to run to a tty. It would better if you were trying to collect system performance information to use the measure agent of glance or the output of sar. There are many posts on this.</description>
      <pubDate>Thu, 14 Mar 2002 20:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683649#M53658</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-03-14T20:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: used the top with cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683650#M53659</link>
      <description>If you are using top in a cron job, you probably want to specify the '-f filename' option as well so that output gets written to a file.&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;&lt;BR /&gt;top -d 5 -n 30 -f /tmp/filename&lt;BR /&gt;&lt;BR /&gt;will run through 5 iterations of top with the top 30 processes of each iteration.</description>
      <pubDate>Thu, 14 Mar 2002 20:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683650#M53659</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-03-14T20:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: used the top with cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683651#M53660</link>
      <description>oops!&lt;BR /&gt;&lt;BR /&gt;There should not be a redirect in my previous post.&lt;BR /&gt;&lt;BR /&gt;top -f /foo/top.out&lt;BR /&gt;&lt;BR /&gt;That will should work.</description>
      <pubDate>Thu, 14 Mar 2002 20:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683651#M53660</guid>
      <dc:creator>Robert Gamble</dc:creator>
      <dc:date>2002-03-14T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: used the top with cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683652#M53661</link>
      <description>Actually, there is a way. Inside your cron script, do a top -f /var/tmp/tfile and then mail your tempfile.&lt;BR /&gt;&lt;BR /&gt;You should of course, create a temp file name, mail it, and then remove the temp file but top -f filename is the key. Top will run once and exit.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2002 20:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-the-top-with-cron/m-p/2683652#M53661</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-14T20:49:06Z</dc:date>
    </item>
  </channel>
</rss>

