<?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: top via email in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113042#M149138</link>
    <description>You are sending the output of top to the standard output.  There is no terminal attached so this is probably your problem.&lt;BR /&gt; &lt;BR /&gt;Try using the "-f filename" option to "top" to output to a file and then e-mail that file.</description>
    <pubDate>Fri, 07 Nov 2003 02:36:41 GMT</pubDate>
    <dc:creator>Mark Grant</dc:creator>
    <dc:date>2003-11-07T02:36:41Z</dc:date>
    <item>
      <title>script: top via email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113041#M149137</link>
      <description>Hi all&lt;BR /&gt;I wanted to write a small script to send the output of the top -d 1 - command via email to our unix-inbox for monitoring.&lt;BR /&gt;There is no problem to run this script manually, but when i tried to trigger it within crontab it gives me an error. Here the critical line:&lt;BR /&gt;/bin/top -d 1 | mailx -s "Output of top-command. Please check!" $EMAIL&lt;BR /&gt;and here the error:&lt;BR /&gt;Sorry, I need to know a more specific terminal type than 'unknown'.&lt;BR /&gt;I added a statement like TERM="hpterm" but id didn't help.&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thanks for your help&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Nov 2003 02:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113041#M149137</guid>
      <dc:creator>Hubert Feller</dc:creator>
      <dc:date>2003-11-07T02:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: script: top via email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113042#M149138</link>
      <description>You are sending the output of top to the standard output.  There is no terminal attached so this is probably your problem.&lt;BR /&gt; &lt;BR /&gt;Try using the "-f filename" option to "top" to output to a file and then e-mail that file.</description>
      <pubDate>Fri, 07 Nov 2003 02:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113042#M149138</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-07T02:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: script: top via email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113043#M149139</link>
      <description>Mark's suggestion should work but if you don't want to go via an intemediate file, so should your idea of TERM="hpterm".&lt;BR /&gt;Where did you put this ?&lt;BR /&gt;&lt;BR /&gt;It needs to precede the top command, as in&lt;BR /&gt;TERM=hpterm /bin/top -d 1 | /usr/bin/mailx -s "Output of top-command. Please check!" $EMAIL&lt;BR /&gt;&lt;BR /&gt;-- Graham</description>
      <pubDate>Fri, 07 Nov 2003 03:23:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113043#M149139</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-11-07T03:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: script: top via email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113044#M149140</link>
      <description>Thanks for your help guys&lt;BR /&gt;&lt;BR /&gt;i must have sit on my eyes when I looked at the man-page of the top command. But finally the -f - option solved the problem.&lt;BR /&gt;&lt;BR /&gt;Have a nice weekend&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 07 Nov 2003 03:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113044#M149140</guid>
      <dc:creator>Hubert Feller</dc:creator>
      <dc:date>2003-11-07T03:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: script: top via email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113045#M149141</link>
      <description>Just for info&lt;BR /&gt;&lt;BR /&gt;I found out that the -f - option of the top-command is not documented in HP-UX 10.20 but can be found in HP-UX 11.00. That's why I didn't get it yesterday.</description>
      <pubDate>Fri, 07 Nov 2003 05:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-top-via-email/m-p/3113045#M149141</guid>
      <dc:creator>Hubert Feller</dc:creator>
      <dc:date>2003-11-07T05:27:16Z</dc:date>
    </item>
  </channel>
</rss>

