<?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: sh: command not found in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106852#M30836</link>
    <description>The user environment could not be available depending on how you run the program.&lt;BR /&gt;&lt;BR /&gt;If you can, define the PATH variable inside the program/script, source the user's profile at run time or specify the full path to the program when is called.</description>
    <pubDate>Fri, 23 Nov 2007 06:16:41 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2007-11-23T06:16:41Z</dc:date>
    <item>
      <title>sh: command not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106850#M30834</link>
      <description>Hi there&lt;BR /&gt;&lt;BR /&gt;When I'm running:&lt;BR /&gt;'mongrel_rails cluster::restart' from command line it's fine.&lt;BR /&gt;&lt;BR /&gt;When I'm running this command from program I'm heving this error:&lt;BR /&gt;&lt;BR /&gt;sh: mongrel_rails: command not found &lt;BR /&gt;&lt;BR /&gt;The command is in /usr/local/bin - which is in user PATH:&lt;BR /&gt;newsfeeder@webserver2:~$ $PATH&lt;BR /&gt;-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games&lt;BR /&gt;&lt;BR /&gt;Can enyone help ?&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Nov 2007 05:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106850#M30834</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2007-11-23T05:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: sh: command not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106851#M30835</link>
      <description>From what program? How is the program launched?&lt;BR /&gt;&lt;BR /&gt;It will be a path issue, and it all dependson how the program is launched.</description>
      <pubDate>Fri, 23 Nov 2007 05:42:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106851#M30835</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-11-23T05:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: sh: command not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106852#M30836</link>
      <description>The user environment could not be available depending on how you run the program.&lt;BR /&gt;&lt;BR /&gt;If you can, define the PATH variable inside the program/script, source the user's profile at run time or specify the full path to the program when is called.</description>
      <pubDate>Fri, 23 Nov 2007 06:16:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106852#M30836</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-11-23T06:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: sh: command not found</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106853#M30837</link>
      <description>If /usr/local/bin/mongrel_rails exists and is accessible (scripts must be both readable &amp;amp; executable to work), the error message might mean that the interpreter of mongrel_rails cannot be found.&lt;BR /&gt;&lt;BR /&gt;Run "head /usr/local/bin/mongrel_rails".&lt;BR /&gt;The first line should be something like:&lt;BR /&gt;&lt;BR /&gt;#!/script/interpreter/path&lt;BR /&gt;&lt;BR /&gt;Make sure the /script/interpreter/path is a correct full pathname of the correct script interpreter.&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with mongrel_rails, but a quick Googling suggests that it should be something like:&lt;BR /&gt;&lt;BR /&gt;#!/opt/ruby/bin/ruby1.8&lt;BR /&gt;(or whatever your ruby version is &amp;amp; wherever your ruby installation is located)&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 23 Nov 2007 07:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sh-command-not-found/m-p/4106853#M30837</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-11-23T07:58:51Z</dc:date>
    </item>
  </channel>
</rss>

