<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Oracle: Executing an OS command from PL/SQL &#8211; ICMP ping from database</title>
	<atom:link href="http://www.usn-it.de/index.php/2009/08/21/oracle-executing-an-os-command-from-plsql-icmp-ping-from-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.usn-it.de/index.php/2009/08/21/oracle-executing-an-os-command-from-plsql-icmp-ping-from-database/</link>
	<description>Martin Klier - Oracle, Linux, MS SQL Server</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:53:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Andy</title>
		<link>http://www.usn-it.de/index.php/2009/08/21/oracle-executing-an-os-command-from-plsql-icmp-ping-from-database/comment-page-1/#comment-18366</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 01 Oct 2010 14:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.usn-it.de/?p=291#comment-18366</guid>
		<description>I have a trouble with executing OS commands from Oracle through java - process output stream not  redirects in file. 
Oracle 10g + Java + Linux 
and same results in Windows XP. 
I&#039;m trying with and without &#039;bash -c&#039; in *nix and with &#039;cmd /c&#039; in win, and with (&quot;&quot;) and (&#039;&#039;) in different positions. But nothing is work.
In other words:
Commands like &#039;ls -l&#039; or &#039;tasklist&#039; is executing perfectly, until not used 
&#039;ls -l &gt; \oracle\java\dir.list&#039;
or 
&#039;tasklist /v /nh &gt; c:\temp\tasks.list&#039;

Can You do this (from Oracle)
exec dbms_output.put_line( run_cmd(&#039;echo &quot;IMAGE                     PID    SESSION          SID      MEMORY       STATUS          USER                                               CPUTIME      HEADER&quot; &gt; &quot;/oracle/java/ps.log&quot;&#039;));</description>
		<content:encoded><![CDATA[<p>I have a trouble with executing OS commands from Oracle through java &#8211; process output stream not  redirects in file.<br />
Oracle 10g + Java + Linux<br />
and same results in Windows XP.<br />
I&#8217;m trying with and without &#8216;bash -c&#8217; in *nix and with &#8216;cmd /c&#8217; in win, and with (&#8220;&#8221;) and (&#8221;) in different positions. But nothing is work.<br />
In other words:<br />
Commands like &#8216;ls -l&#8217; or &#8216;tasklist&#8217; is executing perfectly, until not used<br />
&#8216;ls -l &gt; \oracle\java\dir.list&#8217;<br />
or<br />
&#8216;tasklist /v /nh &gt; c:\temp\tasks.list&#8217;</p>
<p>Can You do this (from Oracle)<br />
exec dbms_output.put_line( run_cmd(&#8216;echo &#8220;IMAGE                     PID    SESSION          SID      MEMORY       STATUS          USER                                               CPUTIME      HEADER&#8221; &gt; &#8220;/oracle/java/ps.log&#8221;&#8216;));</p>
]]></content:encoded>
	</item>
</channel>
</rss>

