<?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: shell error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868950#M97871</link>
    <description>/bin (and also /lib) have been obsolete for almost 10 years after the adoption of V.4 filesystem layout standards for Unix. Just like Solaris and other flavors of Unix, /bin is not a directory. Use the command ll -d /bin (notice -d) and you'll see that /bin is a transition link. If you type the command: ll /bin/ksh, it will appear to be there but that is the purpose for a symbolic link.&lt;BR /&gt;&lt;BR /&gt;Apparently your script has some special code to detect a symlink. Simply change your script's loader directive (line 1) to: #!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;It is important to note that transition links are temporary and may not exist in a future release of HP-UX. They were supposed to disappear at 10.20, then 11.0 but eventually, they will no longer exist, at least by default. 10 years should be long enough to cleanup all that old code. Retraining script writers seems to be the real problem.</description>
    <pubDate>Sat, 21 Dec 2002 14:38:05 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-12-21T14:38:05Z</dc:date>
    <item>
      <title>shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868946#M97867</link>
      <description>hello guys..&lt;BR /&gt;&lt;BR /&gt;i re run a script and i got this error. this script was running fine few minutes ago and this error suddenly appears. no updates done with the script..&lt;BR /&gt;&lt;BR /&gt;&amp;gt;check&lt;BR /&gt;&lt;BR /&gt;interpreter "/bin/ksh" not found&lt;BR /&gt;file link resolves to "/usr/bin/ksh"&lt;BR /&gt;interpreter "/bin/ksh" not found&lt;BR /&gt;file link resolves to "/usr/bin/ksh"&lt;BR /&gt;ksh: check:  not found&lt;BR /&gt;&lt;BR /&gt;i wonder why is this happening..any ideas guys? i need it desperately...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 21 Dec 2002 03:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868946#M97867</guid>
      <dc:creator>hien</dc:creator>
      <dc:date>2002-12-21T03:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868947#M97868</link>
      <description>It sounds like the script is looking for ksh to actually reside in /bin.  It doesn't anymore.  /bin/ksh is a link to /usr/bin/ksh.&lt;BR /&gt;&lt;BR /&gt;Check the logic in the script and  see if it is looking specifically for /bin/ksh anywhere.&lt;BR /&gt;&lt;BR /&gt;Another thing to check is the first line of the script.  If it is:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;change it to&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;and see what happens.</description>
      <pubDate>Sat, 21 Dec 2002 03:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868947#M97868</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-12-21T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868948#M97869</link>
      <description>thank you so much patrick but when i look at /bin, ksh is there and NOT A LINK. and i didnt touch it. anyways, sombday myt have deleted the link and copied the ksh in /bin. i think theres no difference if ksh in /bin is not a link to /usr/bin/ksh. what do u think? also, can we change timestamp backwards? since the timstamp of /bin/ksh and /usr/bin/ksh is the same...&lt;BR /&gt;&lt;BR /&gt;also, any idea where could i search for any logs? i dont have root access.&lt;BR /&gt;&lt;BR /&gt;i really appreciated your quick reply.</description>
      <pubDate>Sat, 21 Dec 2002 03:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868948#M97869</guid>
      <dc:creator>hien</dc:creator>
      <dc:date>2002-12-21T03:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868949#M97870</link>
      <description>&lt;BR /&gt;# ll /bin &lt;BR /&gt;lr-xr-xr-t 1 root sys 8 Dec 6 14:43 /bin -&amp;gt; /usr/bin &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The /bin directory is a link of the /usr/bin&lt;BR /&gt;So when you refer the /bin directory it refers the /usr/bin directory.&lt;BR /&gt;So the files are the same.&lt;BR /&gt;So there is nothing to change.&lt;BR /&gt;Make sure that the /bin is linked to /usr/bin.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;check this white paper&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/5963-8942/5963-8942.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/5963-8942/5963-8942.html&lt;/A&gt;</description>
      <pubDate>Sat, 21 Dec 2002 06:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868949#M97870</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-21T06:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868950#M97871</link>
      <description>/bin (and also /lib) have been obsolete for almost 10 years after the adoption of V.4 filesystem layout standards for Unix. Just like Solaris and other flavors of Unix, /bin is not a directory. Use the command ll -d /bin (notice -d) and you'll see that /bin is a transition link. If you type the command: ll /bin/ksh, it will appear to be there but that is the purpose for a symbolic link.&lt;BR /&gt;&lt;BR /&gt;Apparently your script has some special code to detect a symlink. Simply change your script's loader directive (line 1) to: #!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;It is important to note that transition links are temporary and may not exist in a future release of HP-UX. They were supposed to disappear at 10.20, then 11.0 but eventually, they will no longer exist, at least by default. 10 years should be long enough to cleanup all that old code. Retraining script writers seems to be the real problem.</description>
      <pubDate>Sat, 21 Dec 2002 14:38:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868950#M97871</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-12-21T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868951#M97872</link>
      <description>I have just encountered this problem when running a shell script.  The answer was that someone had copied a new version of the script from their PC by ftping in binary mode.  This had left all the Ctrl-M characters at the end of each line causing the error.  When I fiexed the file with dos2ux all was OK again.</description>
      <pubDate>Mon, 10 Mar 2003 09:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868951#M97872</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2003-03-10T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868952#M97873</link>
      <description>The last suggestion worked for me.</description>
      <pubDate>Thu, 12 Feb 2004 17:13:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868952#M97873</guid>
      <dc:creator>Rasheed Sonson</dc:creator>
      <dc:date>2004-02-12T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: shell error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868953#M97874</link>
      <description>encountered the same error and the last soln woked for me perfectly...&lt;BR /&gt;&lt;BR /&gt;thanks guys.. u r of great help..&lt;BR /&gt;&lt;BR /&gt;more power.</description>
      <pubDate>Tue, 11 Oct 2005 06:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-error/m-p/2868953#M97874</guid>
      <dc:creator>rene_48</dc:creator>
      <dc:date>2005-10-11T06:05:56Z</dc:date>
    </item>
  </channel>
</rss>

