<?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: default hpux posix shell doenst work but ksh does on orace weblogic script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528956#M496657</link>
    <description>&lt;P&gt;Yes, &lt;STRONG&gt;#!/bin/sh&lt;/STRONG&gt; is the interpreter line and it specifies the POSIX shell (&lt;STRONG&gt;/bin/sh&lt;/STRONG&gt; points to &lt;STRONG&gt;/usr/bin/sh&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;So change it to &lt;STRONG&gt;#!/usr/bin/ksh&lt;/STRONG&gt; and the script should work fine.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2014 15:42:04 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2014-07-03T15:42:04Z</dc:date>
    <item>
      <title>default hpux posix shell doenst work but ksh does on orace weblogic script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528896#M496654</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a customer is trying to setup oracle weblogic on hpux 11.31. hes trying to run a reports.sh script with the default /bin/sh but it keeps having problems assigning variables. when he runs it as a ksh it works.&lt;/P&gt;&lt;P&gt;oracle support also ran it on a similiar hpux box they have and it worked. the customer doesnt really want to run ksh, he d&lt;/P&gt;&lt;P&gt;rather run the default hpux shell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;has anyone ever run into something similiar?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528896#M496654</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2014-07-03T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: default hpux posix shell doenst work but ksh does on orace weblogic script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528916#M496655</link>
      <description>&lt;P&gt;The script is missing the interpreter line: &lt;STRONG&gt;#!/usr/bin/ksh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The shell you use to login will be the default for scripts that do not specify the intended interpreter. That's why I consider the interpreter mandatory for all shell scripts. For about 95% of the features in the POSIX shell, ksh is a match, but there are differences, just like there are differences between bash and ksh. All 3 are considered to be 'POSIX' compliant but shell script writers are not often aware of the differences, thus the problems.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So keep your standard /usr/bin/sh or /sbin/sh POSIX shell and just add the interpreter line to the WebLogic script.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528916#M496655</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2014-07-03T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: default hpux posix shell doenst work but ksh does on orace weblogic script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528926#M496656</link>
      <description>&lt;P&gt;thx for the quick reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the top of the script, isnt that ok?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.&lt;BR /&gt;#&lt;/P&gt;&lt;P&gt;## Example file to set environment variables in Bourne-shell or K-shell&lt;BR /&gt;## for Oracle Reports 10gR2. Refer to Install Doc for more detail on each&lt;BR /&gt;## of these environment variables. You need to modify some of the environment&lt;BR /&gt;## variables before doing source on this file ( % . reports.sh ).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528926#M496656</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2014-07-03T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: default hpux posix shell doenst work but ksh does on orace weblogic script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528956#M496657</link>
      <description>&lt;P&gt;Yes, &lt;STRONG&gt;#!/bin/sh&lt;/STRONG&gt; is the interpreter line and it specifies the POSIX shell (&lt;STRONG&gt;/bin/sh&lt;/STRONG&gt; points to &lt;STRONG&gt;/usr/bin/sh&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;So change it to &lt;STRONG&gt;#!/usr/bin/ksh&lt;/STRONG&gt; and the script should work fine.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6528956#M496657</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2014-07-03T15:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: default hpux posix shell doenst work but ksh does on orace weblogic script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6529138#M496658</link>
      <description>&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 19:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-hpux-posix-shell-doenst-work-but-ksh-does-on-orace/m-p/6529138#M496658</guid>
      <dc:creator>p7</dc:creator>
      <dc:date>2014-07-03T19:37:18Z</dc:date>
    </item>
  </channel>
</rss>

