<?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: 11.23 PA logins command - return code 236 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540304#M369282</link>
    <description>&amp;gt;ME: Ah, the IPF C/aC++ compiler supports the C99 and C++ Standards that require this to return 0.&lt;BR /&gt;&lt;BR /&gt;Yes, this is exactly the problem, it fell off the end.  It was fixed for 11.31.</description>
    <pubDate>Wed, 02 Dec 2009 22:30:44 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-12-02T22:30:44Z</dc:date>
    <item>
      <title>11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540297#M369275</link>
      <description>I have noticed that on version 11.23 I get exit status 236 from the following command:&lt;BR /&gt;&lt;BR /&gt;logins -oxl root ; echo $?&lt;BR /&gt;&amp;gt; 236&lt;BR /&gt;&lt;BR /&gt;However on 11.31 I get the expected code 0&lt;BR /&gt;&lt;BR /&gt;logins -oxl root ; echo $?&lt;BR /&gt;&amp;gt; 0&lt;BR /&gt;&lt;BR /&gt;The output is correct for both versions and contains no error data.Can anyone explain this ? Its causing problems with some automation&lt;BR /&gt;we are using which calls the logins command and check the exit status.</description>
      <pubDate>Thu, 26 Nov 2009 10:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540297#M369275</guid>
      <dc:creator>Mick_chair</dc:creator>
      <dc:date>2009-11-26T10:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540298#M369276</link>
      <description>Unfortunately logins(1m) doesn't mention anything about RETURN VALUE.&lt;BR /&gt;&lt;BR /&gt;I suppose you could run tusc on it to see what it returns and where.</description>
      <pubDate>Thu, 26 Nov 2009 20:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540298#M369276</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-26T20:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540299#M369277</link>
      <description>Hi I got this response from another forum&lt;BR /&gt;&lt;BR /&gt;"the wait() system call returns the lowest 8 bits of the actual return code.&lt;BR /&gt;It is treated as if it were an "unsigned char" in effect. It is not. So, negative small numbers returned become return values &amp;gt; 127, for example. Think ~(return value), we saw this on migrating from 11.0 to HPUX 11.23 PA_RISC-2 boxes, running 32 bit mode code. The 11.0 code is binary compatible, so we did not recompile.&lt;BR /&gt;&lt;BR /&gt;Create a hashed alias in /etc/profile: a shell script wrapper for logins. It masks the return value to zero or 1. We ran into other commands that do this as well."&lt;BR /&gt;&lt;BR /&gt;Running Tusc ..&lt;BR /&gt;write(1, "r o o t : 0 : s y s : 3 : : / : ".., 44) ..... = 44&lt;BR /&gt;getpid() ..................................... = 10519 (10518)&lt;BR /&gt;unlink("/var/spool/sockets/pwgr/client10519") ............ = 0&lt;BR /&gt;exit(236) ...................................... WIFEXITED(236)&lt;BR /&gt;236&lt;BR /&gt;&lt;BR /&gt;I guess I will have to raise a problem for this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Nov 2009 09:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540299#M369277</guid>
      <dc:creator>Mick_chair</dc:creator>
      <dc:date>2009-11-27T09:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540300#M369278</link>
      <description>The source code for 11.31 only indicate the exit values of 0 and 1.  I don't see 236 nor -20.&lt;BR /&gt;When I try your example on 11.23, I get 0.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;exit(236) ........ WIFEXITED(236) 236&lt;BR /&gt;&lt;BR /&gt;You may have to get out your debugger to see where it occurs.</description>
      <pubDate>Tue, 01 Dec 2009 01:36:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540300#M369278</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-01T01:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540301#M369279</link>
      <description>I am experiencing the exact same thing on 11.23&lt;BR /&gt;Never happened under 11.11.&lt;BR /&gt;&lt;BR /&gt;I wrote a security script that checks this, and it kept failing until I realized it was returning 236&lt;BR /&gt;&lt;BR /&gt;Could use some help as well.</description>
      <pubDate>Tue, 01 Dec 2009 21:09:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540301#M369279</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2009-12-01T21:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540302#M369280</link>
      <description>Ditto for the failure on HP-UX 11.23 on a PA-RISC box here.  Just running 'logins' as root results in a return code of 236.&lt;BR /&gt;&lt;BR /&gt;This system has been patched in the last month with all patches recommended by an SWA analysis.</description>
      <pubDate>Tue, 01 Dec 2009 22:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540302#M369280</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-12-01T22:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540303#M369281</link>
      <description>&amp;gt;Ratzie: I am experiencing the exact same thing on 11.23&lt;BR /&gt;&lt;BR /&gt;I was using an Integrity box and am not sure why it should be different unless it is falling off the end of main with no return?&lt;BR /&gt;(Ah, the IPF C/aC++ compiler supports the C99 and C++ Standards that require this to return 0.)&lt;BR /&gt;&lt;BR /&gt;I'll see if I can find a PA executable.</description>
      <pubDate>Wed, 02 Dec 2009 04:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540303#M369281</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-02T04:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540304#M369282</link>
      <description>&amp;gt;ME: Ah, the IPF C/aC++ compiler supports the C99 and C++ Standards that require this to return 0.&lt;BR /&gt;&lt;BR /&gt;Yes, this is exactly the problem, it fell off the end.  It was fixed for 11.31.</description>
      <pubDate>Wed, 02 Dec 2009 22:30:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540304#M369282</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-02T22:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540305#M369283</link>
      <description>We have been trying to find ways around this.&lt;BR /&gt;Is it something that HP might consider getting a patch released for ?&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2010 14:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540305#M369283</guid>
      <dc:creator>Mick_chair</dc:creator>
      <dc:date>2010-03-12T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: 11.23 PA logins command - return code 236</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540306#M369284</link>
      <description>&amp;gt;Is it something that HP might consider getting a patch released for?&lt;BR /&gt;&lt;BR /&gt;Possibly, have you contacted the Response Center?</description>
      <pubDate>Fri, 12 Mar 2010 19:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/11-23-pa-logins-command-return-code-236/m-p/4540306#M369284</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-03-12T19:46:21Z</dc:date>
    </item>
  </channel>
</rss>

