<?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: add checking in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6210017#M496191</link>
    <description>&lt;P&gt;I'm having some difficulty understanding you. What do you mean by "the UNIX command"? Do you want to pass an arbitrary command to the subroutine and have it executed?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2013 15:17:36 GMT</pubDate>
    <dc:creator>RJHall</dc:creator>
    <dc:date>2013-09-19T15:17:36Z</dc:date>
    <item>
      <title>add checking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6205543#M496187</link>
      <description>&lt;P&gt;deleted&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 06:02:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6205543#M496187</guid>
      <dc:creator>2ne1Abcd</dc:creator>
      <dc:date>2013-09-25T06:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: add checking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6205987#M496188</link>
      <description>&lt;P&gt;One way to check the output of a system command is to run it in a Perl 'open' operation and filter on the output. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my $fh;&lt;/P&gt;&lt;P&gt;my $cmd = "ls -1 /tmp";&lt;/P&gt;&lt;P&gt;if ( open( $fh, "$cmd |" ) ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; while( $fh ) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; my $line = $_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Process the $line content here...&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; close( $fh);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's plenty of examples of this sort of operation on the web. But I'd suggest learning a little more about perl before you proceed.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2013 16:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6205987#M496188</guid>
      <dc:creator>RJHall</dc:creator>
      <dc:date>2013-09-16T16:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: add checking</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6210017#M496191</link>
      <description>&lt;P&gt;I'm having some difficulty understanding you. What do you mean by "the UNIX command"? Do you want to pass an arbitrary command to the subroutine and have it executed?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2013 15:17:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/add-checking/m-p/6210017#M496191</guid>
      <dc:creator>RJHall</dc:creator>
      <dc:date>2013-09-19T15:17:36Z</dc:date>
    </item>
  </channel>
</rss>

