<?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 Command Export not found in scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465801#M15696</link>
    <description>We are using Oracle on our HP9000 K370 under 11.0. In the backup we do a database-shutdown, calling a shutdown-scripts with the su command. The shutdown script starts with setting a few variables. However, the export of these variables produces an error-message, which is listed below.&lt;BR /&gt;------------------------------&lt;BR /&gt;su - oracle /disk01/app/oracle/admin/C2P/test.sh&lt;BR /&gt;&lt;BR /&gt;export: Command not found&lt;BR /&gt;export: Command not found.&lt;BR /&gt;/disk01/app/oracle/product/8.0.5&lt;BR /&gt;C2K&lt;BR /&gt;----------------------------------&lt;BR /&gt;&lt;BR /&gt;The part of the script involved is listed below.&lt;BR /&gt;------------------&lt;BR /&gt;export ORACLE_HOME=/disk01/app/oracle/product/8.0.5&lt;BR /&gt;export ORACLE_SID=C2P&lt;BR /&gt;&lt;BR /&gt;echo $ORACLE_HOME&lt;BR /&gt;echo $ORACLE_SID&lt;BR /&gt;--------------------&lt;BR /&gt;&lt;BR /&gt;I can see what is going wrong here since the echo command gives the right results.&lt;BR /&gt;</description>
    <pubDate>Mon, 20 Nov 2000 12:49:18 GMT</pubDate>
    <dc:creator>Maarten van Maanen</dc:creator>
    <dc:date>2000-11-20T12:49:18Z</dc:date>
    <item>
      <title>Command Export not found in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465801#M15696</link>
      <description>We are using Oracle on our HP9000 K370 under 11.0. In the backup we do a database-shutdown, calling a shutdown-scripts with the su command. The shutdown script starts with setting a few variables. However, the export of these variables produces an error-message, which is listed below.&lt;BR /&gt;------------------------------&lt;BR /&gt;su - oracle /disk01/app/oracle/admin/C2P/test.sh&lt;BR /&gt;&lt;BR /&gt;export: Command not found&lt;BR /&gt;export: Command not found.&lt;BR /&gt;/disk01/app/oracle/product/8.0.5&lt;BR /&gt;C2K&lt;BR /&gt;----------------------------------&lt;BR /&gt;&lt;BR /&gt;The part of the script involved is listed below.&lt;BR /&gt;------------------&lt;BR /&gt;export ORACLE_HOME=/disk01/app/oracle/product/8.0.5&lt;BR /&gt;export ORACLE_SID=C2P&lt;BR /&gt;&lt;BR /&gt;echo $ORACLE_HOME&lt;BR /&gt;echo $ORACLE_SID&lt;BR /&gt;--------------------&lt;BR /&gt;&lt;BR /&gt;I can see what is going wrong here since the echo command gives the right results.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2000 12:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465801#M15696</guid>
      <dc:creator>Maarten van Maanen</dc:creator>
      <dc:date>2000-11-20T12:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Command Export not found in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465802#M15697</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Instead of running&lt;BR /&gt;su - oracle /disk01/app/oracle/admin/C2P/test.sh&lt;BR /&gt;&lt;BR /&gt;Supply the -c argument:-&lt;BR /&gt;su - oracle -c /disk01/app/oracle/admin/C2P/test.sh&lt;BR /&gt;&lt;BR /&gt;Personally I would run the command:-&lt;BR /&gt;su oracle -c /disk01/app/oracle/admin/C2P/test.sh&lt;BR /&gt;&lt;BR /&gt;and get the script to set up the necessary Oracle environment (PATH, ORACLE_HOME and ORACLE_SID).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Nov 2000 13:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465802#M15697</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-11-20T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Command Export not found in scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465803#M15698</link>
      <description>insert as the first line in your /disk01/app/oracle/admin/C2P/test.sh &lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;to ensure that the script runs in posix shell.&lt;BR /&gt;(i guess your oracle user has the c-shell - check it in /etc/passwd)&lt;BR /&gt;Also be sure that your test.sh has posix/bourne/korn shell syntax.</description>
      <pubDate>Mon, 20 Nov 2000 13:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-export-not-found-in-scripts/m-p/2465803#M15698</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-11-20T13:08:23Z</dc:date>
    </item>
  </channel>
</rss>

