<?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 C Compiler program (memdetail) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185856#M460686</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   i have read one thread with the following notes :-&lt;BR /&gt;&lt;BR /&gt;---------------------------------&lt;BR /&gt;And here's a little program I use called memdetail. It is a c program - compiles with the built in HP-UX compiler.&lt;BR /&gt;&lt;BR /&gt;cc memdetail1.c&lt;BR /&gt;&lt;BR /&gt;mv a.out /usr/local/bin/memdetail&lt;BR /&gt;&lt;BR /&gt;Output like:&lt;BR /&gt;&lt;BR /&gt;# memdetail&lt;BR /&gt;Memory Stat      total    used   avail   %used&lt;BR /&gt;physical        40958.0 28445.2 12512.8    69%&lt;BR /&gt;active virtual  30213.0 8304.0  21909.1    27%&lt;BR /&gt;active real     19827.2 6694.1  13133.0    34%&lt;BR /&gt;memory swap     40958.0 15385.0 25573.0    38%&lt;BR /&gt;device swap     83964.0 31218.8 52745.2    37%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;I downloaded this memdetail program and made a file named memdetail.sh in my server. But when i execute this program with &lt;BR /&gt;&lt;BR /&gt;   # sh memdetail.sh&lt;BR /&gt;&lt;BR /&gt;  it gives a hell of errors. Please tell me how can i execute this C program in my HP-UX box. I am attaching that program with it for your reference.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ranju</description>
    <pubDate>Tue, 07 Jul 2009 13:20:16 GMT</pubDate>
    <dc:creator>Vishu</dc:creator>
    <dc:date>2009-07-07T13:20:16Z</dc:date>
    <item>
      <title>C Compiler program (memdetail)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185856#M460686</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   i have read one thread with the following notes :-&lt;BR /&gt;&lt;BR /&gt;---------------------------------&lt;BR /&gt;And here's a little program I use called memdetail. It is a c program - compiles with the built in HP-UX compiler.&lt;BR /&gt;&lt;BR /&gt;cc memdetail1.c&lt;BR /&gt;&lt;BR /&gt;mv a.out /usr/local/bin/memdetail&lt;BR /&gt;&lt;BR /&gt;Output like:&lt;BR /&gt;&lt;BR /&gt;# memdetail&lt;BR /&gt;Memory Stat      total    used   avail   %used&lt;BR /&gt;physical        40958.0 28445.2 12512.8    69%&lt;BR /&gt;active virtual  30213.0 8304.0  21909.1    27%&lt;BR /&gt;active real     19827.2 6694.1  13133.0    34%&lt;BR /&gt;memory swap     40958.0 15385.0 25573.0    38%&lt;BR /&gt;device swap     83964.0 31218.8 52745.2    37%&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;I downloaded this memdetail program and made a file named memdetail.sh in my server. But when i execute this program with &lt;BR /&gt;&lt;BR /&gt;   # sh memdetail.sh&lt;BR /&gt;&lt;BR /&gt;  it gives a hell of errors. Please tell me how can i execute this C program in my HP-UX box. I am attaching that program with it for your reference.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ranju</description>
      <pubDate>Tue, 07 Jul 2009 13:20:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185856#M460686</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-07T13:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: C Compiler program (memdetail)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185857#M460687</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Need to see the errors.&lt;BR /&gt;&lt;BR /&gt;perhaps use tusc and record process detail as well (equivalent of strace in Linux)&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 07 Jul 2009 13:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185857#M460687</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-07T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: C Compiler program (memdetail)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185858#M460688</link>
      <description>Below are the errors :-&lt;BR /&gt;&lt;BR /&gt;$ sh memdetail.sh&lt;BR /&gt;memdetail.sh: /1: Execute permission denied.&lt;BR /&gt;memdetail.sh[2]: DiSK_OUT: Execute permission denied.&lt;BR /&gt;memdetail.sh[3]: DiSK_OUT: Execute permission denied.&lt;BR /&gt;memdetail.sh[4]: 11.00:  not found.&lt;BR /&gt;memdetail.sh[5]: Syntax error at line 6 : `newline or ;' is not expected.&lt;BR /&gt;$ memdetail.sh[4]: DiSK_OUT: Execute permission denied.&lt;BR /&gt;&lt;BR /&gt;after this, i interrupted it with ctrl+C. But i think, where in C, we use # to include functions, it may be taken as a comment in shell execution.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jul 2009 13:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185858#M460688</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-07T13:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: C Compiler program (memdetail)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185859#M460689</link>
      <description>Hi Ranju:&lt;BR /&gt;&lt;BR /&gt;Did you compile like this(?):&lt;BR /&gt;&lt;BR /&gt;# cc ./memdetail.c -o ./memdetail&lt;BR /&gt;&lt;BR /&gt;...where the C program is named 'memdetail.c'&lt;BR /&gt;&lt;BR /&gt;...and then at a shell prompt do:&lt;BR /&gt;&lt;BR /&gt;# ./memdetail&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 07 Jul 2009 13:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185859#M460689</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-07-07T13:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: C Compiler program (memdetail)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185860#M460690</link>
      <description>Thanks James,&lt;BR /&gt;&lt;BR /&gt;    it worked out with cc. Full points to you.&lt;BR /&gt;&lt;BR /&gt;thanks everyone.</description>
      <pubDate>Tue, 07 Jul 2009 13:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185860#M460690</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-07T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: C Compiler program (memdetail)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185861#M460691</link>
      <description>closing this thread.</description>
      <pubDate>Tue, 07 Jul 2009 13:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-compiler-program-memdetail/m-p/5185861#M460691</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-07T13:41:24Z</dc:date>
    </item>
  </channel>
</rss>

