<?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: Find and perl in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428071#M36765</link>
    <description>Hi Den:&lt;BR /&gt;&lt;BR /&gt;If you have the interpreter shebang line defined (as you should), then using Ivan's syntax:&lt;BR /&gt;&lt;BR /&gt;# find /su01 -name "opatch.pl" -exec {} -lsinventory -detail \;&lt;BR /&gt;&lt;BR /&gt;...you will find that regardless of what the interpreter is, the file thus found will be executed.&lt;BR /&gt;&lt;BR /&gt;You could also pre-test with:&lt;BR /&gt;&lt;BR /&gt;# find /su01 -name "opatch.pl" -exec perl -c {} -lsinventory -detail \;&lt;BR /&gt;&lt;BR /&gt;...which would perform a syntax compilation in Perl's case but not actually execute the file.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 27 May 2009 20:13:21 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-05-27T20:13:21Z</dc:date>
    <item>
      <title>Find and perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428069#M36763</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;Here a find command&lt;BR /&gt;&lt;BR /&gt; find /su01 -name "opatch.pl" 2&amp;gt;/dev/null&lt;BR /&gt;result is:&lt;BR /&gt;/su01/app/oracle/product/1010/OPatch/opatch.pl&lt;BR /&gt;&lt;BR /&gt;How to execute the result with parameters like this:&lt;BR /&gt;&lt;BR /&gt;perl "My Result from the find command" -lsinventory -detail&lt;BR /&gt;&lt;BR /&gt;any idea ?&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den</description>
      <pubDate>Wed, 27 May 2009 18:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428069#M36763</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2009-05-27T18:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Find and perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428070#M36764</link>
      <description>You can use -exec, and {} will be replaced by the file found:&lt;BR /&gt;&lt;BR /&gt;find /su01 -name "opatch.pl" -exec perl {} -lsinventory -detail \;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 May 2009 19:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428070#M36764</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-05-27T19:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find and perl</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428071#M36765</link>
      <description>Hi Den:&lt;BR /&gt;&lt;BR /&gt;If you have the interpreter shebang line defined (as you should), then using Ivan's syntax:&lt;BR /&gt;&lt;BR /&gt;# find /su01 -name "opatch.pl" -exec {} -lsinventory -detail \;&lt;BR /&gt;&lt;BR /&gt;...you will find that regardless of what the interpreter is, the file thus found will be executed.&lt;BR /&gt;&lt;BR /&gt;You could also pre-test with:&lt;BR /&gt;&lt;BR /&gt;# find /su01 -name "opatch.pl" -exec perl -c {} -lsinventory -detail \;&lt;BR /&gt;&lt;BR /&gt;...which would perform a syntax compilation in Perl's case but not actually execute the file.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 27 May 2009 20:13:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-and-perl/m-p/4428071#M36765</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-27T20:13:21Z</dc:date>
    </item>
  </channel>
</rss>

