<?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: C: How to pull in info from the system? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575618#M54640</link>
    <description>&lt;P&gt;&amp;gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the posts were helpful, please click on the kudos stars, both here and at the link.&lt;/P&gt;</description>
    <pubDate>Sun, 17 Aug 2014 01:27:52 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2014-08-17T01:27:52Z</dc:date>
    <item>
      <title>C Programming Language: How To Pull In Information From The System?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575200#M54637</link>
      <description>&lt;P&gt;Hello Everyone;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to run the &amp;lt;apm&amp;gt; command, from withing a C program, and get the program to receive the output - so that I can display it in an xsession (window) on my screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used the &amp;lt;system&amp;gt; call to tell the O/S what to do - but I don't know where to look to find out how to issue a system call and have the program receive the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;tonyp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2014 04:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575200#M54637</guid>
      <dc:creator>tony j. podrasky</dc:creator>
      <dc:date>2014-08-16T04:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: C: How to pull in info from the system?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575230#M54638</link>
      <description>&lt;P&gt;The correct function is popen(3) with the "r" parm.&amp;nbsp; Or you could use pipe(2) with fork(2)/exec(2).&lt;/P&gt;&lt;P&gt;And example of the reverse popen(3) is here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://h30499.www3.hp.com/t5/Languages-and-Scripting/Facing-problem-with-popen-system-call-in-HP-UX/m-p/6566228#M47094" target="_blank"&gt;http://h30499.www3.hp.com/t5/Languages-and-Scripting/Facing-problem-with-popen-system-call-in-HP-UX/m-p/6566228#M47094&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2014 08:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575230#M54638</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-08-16T08:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: C: How to pull in info from the system?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575548#M54639</link>
      <description>&lt;P&gt;Hello Dennis;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I needed was the &amp;lt;popen&amp;gt; function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Worked as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I can re-write all the programs that I wrote that use [system abcdefg &amp;gt;&amp;gt; output] and then do an &amp;lt;open&amp;gt; of "output".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link you left was a bonus!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;tonyp&lt;/P&gt;</description>
      <pubDate>Sat, 16 Aug 2014 23:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575548#M54639</guid>
      <dc:creator>tony j. podrasky</dc:creator>
      <dc:date>2014-08-16T23:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: C: How to pull in info from the system?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575618#M54640</link>
      <description>&lt;P&gt;&amp;gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the posts were helpful, please click on the kudos stars, both here and at the link.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2014 01:27:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/c-programming-language-how-to-pull-in-information-from-the/m-p/6575618#M54640</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-08-17T01:27:52Z</dc:date>
    </item>
  </channel>
</rss>

