<?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 Using mpsched -s in scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855534#M721463</link>
    <description>I am using mpsched in a script to figure out the number of cpus per partition.  Everytime I use mpsched -s it displays on the screen.  &lt;BR /&gt;&lt;BR /&gt;I am trying to use:&lt;BR /&gt;&lt;BR /&gt;mpsched -s | grep -w Processor | awk '{print $4}'&lt;BR /&gt;&lt;BR /&gt;But I can not capture the output because it is only displaying on the screen.  Any thoughts??</description>
    <pubDate>Mon, 02 Dec 2002 17:16:31 GMT</pubDate>
    <dc:creator>paul_221</dc:creator>
    <dc:date>2002-12-02T17:16:31Z</dc:date>
    <item>
      <title>Using mpsched -s in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855534#M721463</link>
      <description>I am using mpsched in a script to figure out the number of cpus per partition.  Everytime I use mpsched -s it displays on the screen.  &lt;BR /&gt;&lt;BR /&gt;I am trying to use:&lt;BR /&gt;&lt;BR /&gt;mpsched -s | grep -w Processor | awk '{print $4}'&lt;BR /&gt;&lt;BR /&gt;But I can not capture the output because it is only displaying on the screen.  Any thoughts??</description>
      <pubDate>Mon, 02 Dec 2002 17:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855534#M721463</guid>
      <dc:creator>paul_221</dc:creator>
      <dc:date>2002-12-02T17:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using mpsched -s in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855535#M721464</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you want to capture the output into a variable (e.g. 'X') do this:&lt;BR /&gt;&lt;BR /&gt;# X=`mpsched -s|grep -w Processor|awk '{print $4}'`&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 17:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855535#M721464</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-12-02T17:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using mpsched -s in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855536#M721465</link>
      <description>If the following code is run the variable is not initialized and the results are displayed on the screen.&lt;BR /&gt;&lt;BR /&gt;X=`mpsched -s|grep -w Processor|awk '{print $4}'` &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 17:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855536#M721465</guid>
      <dc:creator>paul_221</dc:creator>
      <dc:date>2002-12-02T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using mpsched -s in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855537#M721466</link>
      <description>Its redirecting the output to stderr not stdout.&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;&lt;BR /&gt;mpsched -s 2&amp;gt;&amp;amp;1 | grep -w 'Processor' | awk '{print $4}'&lt;BR /&gt;&lt;BR /&gt;Adam</description>
      <pubDate>Tue, 03 Dec 2002 12:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-mpsched-s-in-scripts/m-p/2855537#M721466</guid>
      <dc:creator>Unix Systems Admin</dc:creator>
      <dc:date>2002-12-03T12:30:54Z</dc:date>
    </item>
  </channel>
</rss>

