<?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: command not found ... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091569#M144906</link>
    <description>this returns a blank as shown below ...&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; exec executecmd('/usr/bin/sh -c "echo $0"');&lt;BR /&gt;OUT&amp;gt;&lt;BR /&gt;ExitValue: 0&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Oct 2003 05:45:08 GMT</pubDate>
    <dc:creator>dave broome_2</dc:creator>
    <dc:date>2003-10-13T05:45:08Z</dc:date>
    <item>
      <title>command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091564#M144901</link>
      <description>This crosses over into a few vendors are so i am trying all of them to see if I can fix the problem.  I have written and successfully run an Oracle Java stored procedure to run an O/s command, this runs from an Oracle database SQL prompt.  On a previous machine running HP 11i it ran fine, on the new one it will only run a very restricted number of commands. LS, PWD are fine but I get "not found" on anything like MV and CP.  I know the procedure has compiled ok because it runs a few commands fine.  Any thoughts from an OS perspective what could cause such a thing?&lt;BR /&gt;&lt;BR /&gt;Any help gratefully received.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 13 Oct 2003 05:17:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091564#M144901</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T05:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091565#M144902</link>
      <description>I suggest you to change the shell.&lt;BR /&gt;&lt;BR /&gt;Some commands, see "man ..." for details, are built in the sheel, while others are external.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think that your plsql procedure works only with the built-in commands, and not with the external ones.&lt;BR /&gt;&lt;BR /&gt;You can try adding ENV variables, to add search path, but i suspect the firt reason.&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 05:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091565#M144902</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T05:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091566#M144903</link>
      <description>You could be running a "restricted" shell.  If you log into the machine type "echo $0" and if it comes back with "-rsh" that will be the problem.&lt;BR /&gt; &lt;BR /&gt;Most likely though, it is something in the .profile of the user that starts the application.  It would seem to be intentional though because "ls" and "mv", by default are in the same directory.  See if you can see if you are running your own copies of the tools you can use an not the system ones.  Try /usr/bin/mv instead of just mv.  One more thing, see if you have a "." in the beginning of your PATH.</description>
      <pubDate>Mon, 13 Oct 2003 05:27:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091566#M144903</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-13T05:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091567#M144904</link>
      <description>I very much get the feeling that it is running a "restricted" shell. The challenge is that I only get the problem from a SQL prompt, if I telnet to the machine as Oracle I can run all of the commands normally, as this user I did the echo $0  and got -sh.  When I try and put that command into the execute command procedure from the SQL prompt it just echos back $0 as a string as shown below &lt;BR /&gt;SQL&amp;gt; exec executecmd('/usr/bin/echo $0');&lt;BR /&gt;OUT&amp;gt;$0&lt;BR /&gt;ExitValue: 0&lt;BR /&gt;&lt;BR /&gt;It's as if it is only allowing a "restricted" login to certain users?? Does this make any sense?  I don't know what user Oracle uses to run it's java stuff remotely.  If it is restricted how do I make it un-restricted?</description>
      <pubDate>Mon, 13 Oct 2003 05:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091567#M144904</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T05:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091568#M144905</link>
      <description>try executing /usr/bin/sh -c "echo $0"&lt;BR /&gt; &lt;BR /&gt;This forces a new shell to start and the echo command will be run by that shell.</description>
      <pubDate>Mon, 13 Oct 2003 05:41:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091568#M144905</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-13T05:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091569#M144906</link>
      <description>this returns a blank as shown below ...&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; exec executecmd('/usr/bin/sh -c "echo $0"');&lt;BR /&gt;OUT&amp;gt;&lt;BR /&gt;ExitValue: 0&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 05:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091569#M144906</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T05:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091570#M144907</link>
      <description>try this, should get rid of any problem:&lt;BR /&gt;&lt;BR /&gt; exec executecmd('/usr/bin/csh -s "cp first second"');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Mon, 13 Oct 2003 05:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091570#M144907</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T05:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091571#M144908</link>
      <description>Dave,&lt;BR /&gt; &lt;BR /&gt;In that case try Massimo's thing.  You can use the csh -s or the sh -c as in my previous post.   Whichever "floats your boat"</description>
      <pubDate>Mon, 13 Oct 2003 05:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091571#M144908</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-13T05:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091572#M144909</link>
      <description>I tried both of those and my SQL session just hangs and the second file has not been created??</description>
      <pubDate>Mon, 13 Oct 2003 05:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091572#M144909</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T05:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091573#M144910</link>
      <description>sorry, i think that I mis-writed.&lt;BR /&gt;&lt;BR /&gt; exec executecmd('/usr/bin/csh -c "cp first second"');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;otherwise, with the -s, the shell will wait for other input.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 06:17:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091573#M144910</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T06:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091574#M144911</link>
      <description>are the double quotes necessary?</description>
      <pubDate>Mon, 13 Oct 2003 06:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091574#M144911</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T06:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091575#M144912</link>
      <description>I am afraid they are.  Otherwise you will only get the first part of the command.</description>
      <pubDate>Mon, 13 Oct 2003 06:31:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091575#M144912</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-13T06:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091576#M144913</link>
      <description>I think the quotes are in the right place and I get ..&lt;BR /&gt;SQL&amp;gt; exec dave&lt;BR /&gt;/usr/bin/csh -c &lt;BR /&gt;"cp /home/oracle/files/a.a /home/oracle/files/b.b"&lt;BR /&gt;ERR&amp;gt;Unmatched "&lt;BR /&gt;ExitValue: 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 06:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091576#M144913</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T06:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091577#M144914</link>
      <description>Hace you done (as DBA) ?&lt;BR /&gt;SQL&amp;gt; GRANT JAVAUSERPRIV TO YOUR_USER;&lt;BR /&gt;--&lt;BR /&gt;-- Graham</description>
      <pubDate>Mon, 13 Oct 2003 06:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091577#M144914</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-10-13T06:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091578#M144915</link>
      <description>yep.</description>
      <pubDate>Mon, 13 Oct 2003 06:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091578#M144915</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T06:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091579#M144916</link>
      <description>Will it work without the single quotes as in&lt;BR /&gt; &lt;BR /&gt;exec executecmd(/usr/bin/sh -c "cp file1 file2");&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 13 Oct 2003 06:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091579#M144916</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-13T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091580#M144917</link>
      <description>no, to get it to work with Oracle syntax constraints I built the string up separately so I could include the double quotes but it didn't work.  I ran the command from an O/S prompt and it worked fine, so I just have to figure out how to get to run from within Oracle.</description>
      <pubDate>Mon, 13 Oct 2003 07:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091580#M144917</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T07:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091581#M144918</link>
      <description>I'm trying to replicate your scenario using code downloaded from MetaLink.&lt;BR /&gt;Haven't got it working yet but there is a lot of information being logged to  USER_DUMP_DEST_AREA.&lt;BR /&gt;Does this help?&lt;BR /&gt;-- Graham</description>
      <pubDate>Mon, 13 Oct 2003 07:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091581#M144918</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-10-13T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091582#M144919</link>
      <description>thanks for trying but sorry no help.</description>
      <pubDate>Mon, 13 Oct 2003 07:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091582#M144919</guid>
      <dc:creator>dave broome_2</dc:creator>
      <dc:date>2003-10-13T07:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: command not found ...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091583#M144920</link>
      <description>Unmatched "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Looks like a sintax problem...&lt;BR /&gt;&lt;BR /&gt;i suggest to check using and echo:&lt;BR /&gt;&lt;BR /&gt;exec executecmd('/usr/bin/sh -c "echo \"cp file1 file2\""');&lt;BR /&gt;&lt;BR /&gt;we want this output:&lt;BR /&gt;"cp file1 file2"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;untill we fix this there is no chance to get it work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What is the output you get ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Mon, 13 Oct 2003 07:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-not-found/m-p/3091583#M144920</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-13T07:49:00Z</dc:date>
    </item>
  </channel>
</rss>

