<?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: ERROR IN .PROFILE in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775788#M2111</link>
    <description>Hi,&lt;BR /&gt;I think Steven Mertens is correct. Very likely $ULIMIT"unlimited".&lt;BR /&gt;Check it by inserting:&lt;BR /&gt;echo "--$ULIMIT--"&lt;BR /&gt;befour the if then else.&lt;BR /&gt;In case it is a string, replace it by a negitve number, like:&lt;BR /&gt;&lt;BR /&gt;The $? is not needed for the command, because it always gets some value, no matter its success, better to do:&lt;BR /&gt;&lt;BR /&gt;ULIMIT=`(ulimit)2&amp;gt;/dev/null`&lt;BR /&gt;if [ "$ULIMIT" != "unlimited" -a "$ULIMIT" -lt 2113674 ] ; then&lt;BR /&gt;&lt;BR /&gt;,if the left part of AND will be unsuccesfull, it will not complain about the right part of AND.&lt;BR /&gt;&lt;BR /&gt;Success,&lt;BR /&gt;Ceesjan&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Jul 2002 20:22:16 GMT</pubDate>
    <dc:creator>Ceesjan van Hattum</dc:creator>
    <dc:date>2002-07-30T20:22:16Z</dc:date>
    <item>
      <title>ERROR IN .PROFILE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775786#M2109</link>
      <description>When I su to oracle I get the following error. The dba's want it fixed, I've tried but cant figure it out.&lt;BR /&gt;Here is the error:&lt;BR /&gt;&lt;BR /&gt;.profile[63]: unlimited: The specified number is not valid for this command. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the line of code in the .profile that calls oraenv.&lt;BR /&gt;&lt;BR /&gt;# Locate "osh" and exec it if found&lt;BR /&gt;ULIMIT=`(ulimit) 2&amp;gt;/dev/null`&lt;BR /&gt;&lt;BR /&gt;if [ $? = 0 -a "$ULIMIT" -lt 2113674 ] ; then  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas, I am lost. This same code works on my other systems without the error.</description>
      <pubDate>Tue, 30 Jul 2002 16:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775786#M2109</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2002-07-30T16:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR IN .PROFILE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775787#M2110</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;probably because the $ulimit var contains the&lt;BR /&gt;string unlimited , and combining this with&lt;BR /&gt;-lt gives an error. &lt;BR /&gt;&lt;BR /&gt;see man test&lt;BR /&gt;&lt;BR /&gt;INTEGER1 -lt INTEGER2&lt;BR /&gt;INTEGER1 is less than INTEGER2&lt;BR /&gt;&lt;BR /&gt;you can use only integers with -lt not strings.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Tue, 30 Jul 2002 17:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775787#M2110</guid>
      <dc:creator>Steven Mertens</dc:creator>
      <dc:date>2002-07-30T17:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR IN .PROFILE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775788#M2111</link>
      <description>Hi,&lt;BR /&gt;I think Steven Mertens is correct. Very likely $ULIMIT"unlimited".&lt;BR /&gt;Check it by inserting:&lt;BR /&gt;echo "--$ULIMIT--"&lt;BR /&gt;befour the if then else.&lt;BR /&gt;In case it is a string, replace it by a negitve number, like:&lt;BR /&gt;&lt;BR /&gt;The $? is not needed for the command, because it always gets some value, no matter its success, better to do:&lt;BR /&gt;&lt;BR /&gt;ULIMIT=`(ulimit)2&amp;gt;/dev/null`&lt;BR /&gt;if [ "$ULIMIT" != "unlimited" -a "$ULIMIT" -lt 2113674 ] ; then&lt;BR /&gt;&lt;BR /&gt;,if the left part of AND will be unsuccesfull, it will not complain about the right part of AND.&lt;BR /&gt;&lt;BR /&gt;Success,&lt;BR /&gt;Ceesjan&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jul 2002 20:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/error-in-profile/m-p/2775788#M2111</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-07-30T20:22:16Z</dc:date>
    </item>
  </channel>
</rss>

