<?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: perl differences with 11iv2? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896189#M701336</link>
    <description>By any chance is your "non root" user on the 11.23 machine set up with an id of 0 ?</description>
    <pubDate>Thu, 14 Apr 2005 12:25:18 GMT</pubDate>
    <dc:creator>Kent Ostby</dc:creator>
    <dc:date>2005-04-14T12:25:18Z</dc:date>
    <item>
      <title>perl differences with 11iv2?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896188#M701335</link>
      <description>&lt;BR /&gt;I'm starting a script with a test for user and OS, like:&lt;BR /&gt;&lt;BR /&gt;chomp($thisuser = `/usr/bin/whoami`);&lt;BR /&gt;chomp($thisos = `/usr/bin/uname -r`);&lt;BR /&gt;&lt;BR /&gt;if($thisos ne "B.11.23") {&lt;BR /&gt;   if($thisuser ne "root") {&lt;BR /&gt;     print "You need to run this script as root.\n";&lt;BR /&gt;     exit(0);&lt;BR /&gt;   }&lt;BR /&gt;   print "This script runs on HP-UX11.23. \n";&lt;BR /&gt;   exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;These tests work fine on a box running 11.11, but the user test fails to catch a non-root user on an 11.23 box.  Both boxes point to the same location for the same version of Perl.  &lt;BR /&gt;&lt;BR /&gt;Any idea what I'm doing wrong?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 14 Apr 2005 12:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896188#M701335</guid>
      <dc:creator>Steve Dorland_1</dc:creator>
      <dc:date>2005-04-14T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: perl differences with 11iv2?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896189#M701336</link>
      <description>By any chance is your "non root" user on the 11.23 machine set up with an id of 0 ?</description>
      <pubDate>Thu, 14 Apr 2005 12:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896189#M701336</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-04-14T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: perl differences with 11iv2?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896190#M701337</link>
      <description>&lt;BR /&gt;No, good thought, so I double-checked since I'm a sysadm, but it's as me, with a non-zero uid, that it's happening.</description>
      <pubDate>Thu, 14 Apr 2005 12:33:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896190#M701337</guid>
      <dc:creator>Steve Dorland_1</dc:creator>
      <dc:date>2005-04-14T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: perl differences with 11iv2?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896191#M701338</link>
      <description>Ok... call me nuts - but why *would* you expect this to do the user test on 11.23? uname -r should report B.11.23 if I recall correctly - so the first if() condition is FALSE (you're using ne, after all), you skip the user test and go straight to the "This script runs on HP-UX 11.23\n"; print. &lt;BR /&gt;&lt;BR /&gt;If the script you have a problem with is different -- please post that script. :) Otherwise, remove the check for 11.23 or invert the order of the conditionals if you want to test for non-root on 11.23.&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;if($thisuser ne "root") {&lt;BR /&gt;print "You need to run this script as root.\n";&lt;BR /&gt;exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if($thisos ne "B.11.23"){&lt;BR /&gt;print "This script runs on HP-UX 11.23.\n";&lt;BR /&gt;exit(0);&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Apr 2005 13:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896191#M701338</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2005-04-14T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: perl differences with 11iv2?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896192#M701339</link>
      <description>arg... of course.  thanks!</description>
      <pubDate>Thu, 14 Apr 2005 13:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-differences-with-11iv2/m-p/4896192#M701339</guid>
      <dc:creator>Steve Dorland_1</dc:creator>
      <dc:date>2005-04-14T13:50:21Z</dc:date>
    </item>
  </channel>
</rss>

