<?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: : bad interpreter: no such file or directory error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839057#M2831</link>
    <description>Hi, Tarek.&lt;BR /&gt;&lt;BR /&gt;To set up these kernel sysctl's you don't need to write up a script - assuming that you're running RedHat &amp;gt;= 6.2.&lt;BR /&gt;&lt;BR /&gt;Instead, modify /etc/sysctl.conf and add the lines:&lt;BR /&gt;&lt;BR /&gt;sys.kernel.sem = "250 32000 32 128"&lt;BR /&gt;sys.kernel.shmmax = 2147483648&lt;BR /&gt;&lt;BR /&gt;After adding these lines, they will tune these parameters in each reboot - no scripts neccessary.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Paulo Fessel</description>
    <pubDate>Tue, 12 Nov 2002 17:38:03 GMT</pubDate>
    <dc:creator>Paulo A G Fessel</dc:creator>
    <dc:date>2002-11-12T17:38:03Z</dc:date>
    <item>
      <title>: bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839053#M2827</link>
      <description>Hi..&lt;BR /&gt;I'm trying to put this simple script in /etc/init.d/ and link it  under /etc/rc3.d/ in order to be run after each reboot.&lt;BR /&gt;When i try to execute it i have the error:&lt;BR /&gt;: bad interpreter: no such file or directory&lt;BR /&gt;It's very strange, because if i copy and paste all the lines of the script it works.&lt;BR /&gt;I attach the script&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Nov 2002 11:41:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839053#M2827</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-11-05T11:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: : bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839054#M2828</link>
      <description>#!/bin/bash&lt;BR /&gt;echo "250  32000  32  128"&amp;gt;/proc/sys/kernel/sem&lt;BR /&gt;echo "2147483648"&amp;gt;/proc/sys/kernel/shmmax&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Nov 2002 11:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839054#M2828</guid>
      <dc:creator>Tarek_1</dc:creator>
      <dc:date>2002-11-05T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: : bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839055#M2829</link>
      <description>Your script seems OK. However, I guess the default shell is not /bin/bash but /bin/sh with symlink to /usr/sbin/sh.&lt;BR /&gt;&lt;BR /&gt;Try to change the first line accordingly (either /bin/sh or /usr/bin/bash).&lt;BR /&gt;&lt;BR /&gt;Another point : some distributions pre-install the "sysctl" software that can be used for what you are trying to achieve. To use this feature :&lt;BR /&gt;&lt;BR /&gt;   =&amp;gt; Check that sysctl is installed (/etc/sysctl.conf should exist)&lt;BR /&gt;&lt;BR /&gt;   =&amp;gt; Check that sysctl is invoked at system boot-up (grep -rli sysctl /etc/rc.d)&lt;BR /&gt;&lt;BR /&gt;   =&amp;gt; Edit /etc/sysctl.conf as follows :&lt;BR /&gt;&lt;BR /&gt;kernel.sem = 250 32000 32 128&lt;BR /&gt;kernel.shmmax = 2147483648&lt;BR /&gt;&lt;BR /&gt;   =&amp;gt; To apply changes, type : sysctl -p. You can also reboot, as this will be automatically done at every reboot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Nov 2002 21:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839055#M2829</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-11-05T21:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: : bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839056#M2830</link>
      <description>Hi,&lt;BR /&gt;The problem is nowhere related to Kernel paramters mentioned. But due to the unwanted control characters present in the script. Do this to remove the control characters from your&lt;BR /&gt;script.&lt;BR /&gt;#dos2ux your_script&lt;BR /&gt;#chmod +x your_script&lt;BR /&gt;&lt;BR /&gt;Execute the script and the error will not appear.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Wed, 06 Nov 2002 07:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839056#M2830</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-11-06T07:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: : bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839057#M2831</link>
      <description>Hi, Tarek.&lt;BR /&gt;&lt;BR /&gt;To set up these kernel sysctl's you don't need to write up a script - assuming that you're running RedHat &amp;gt;= 6.2.&lt;BR /&gt;&lt;BR /&gt;Instead, modify /etc/sysctl.conf and add the lines:&lt;BR /&gt;&lt;BR /&gt;sys.kernel.sem = "250 32000 32 128"&lt;BR /&gt;sys.kernel.shmmax = 2147483648&lt;BR /&gt;&lt;BR /&gt;After adding these lines, they will tune these parameters in each reboot - no scripts neccessary.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Paulo Fessel</description>
      <pubDate>Tue, 12 Nov 2002 17:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839057#M2831</guid>
      <dc:creator>Paulo A G Fessel</dc:creator>
      <dc:date>2002-11-12T17:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: : bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839058#M2832</link>
      <description>Please, don't forget to assign points to the answers you got - this is the only way to keep interest and participation high.</description>
      <pubDate>Tue, 12 Nov 2002 17:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/2839058#M2832</guid>
      <dc:creator>Paulo A G Fessel</dc:creator>
      <dc:date>2002-11-12T17:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: : bad interpreter: no such file or directory error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/5650813#M53662</link>
      <description>Thanks Kodjo Agbenu!!! I got the same kind of error, when i changed the firs line to /bin/bash it started worked.Kudos.. :)</description>
      <pubDate>Tue, 08 May 2012 12:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bad-interpreter-no-such-file-or-directory-error/m-p/5650813#M53662</guid>
      <dc:creator>bebu</dc:creator>
      <dc:date>2012-05-08T12:27:37Z</dc:date>
    </item>
  </channel>
</rss>

