<?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: Executing a Perl Command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876703#M708029</link>
    <description>might not be the reason, but&lt;BR /&gt;perl="/opt/perl/bin" then&lt;BR /&gt;perl -e ....&lt;BR /&gt;&lt;BR /&gt;maybe your not using the version of perl you think you are.&lt;BR /&gt;&lt;BR /&gt;you might check your quoting, double quotes inside of single quotes.</description>
    <pubDate>Wed, 22 Dec 2004 19:47:38 GMT</pubDate>
    <dc:creator>c_51</dc:creator>
    <dc:date>2004-12-22T19:47:38Z</dc:date>
    <item>
      <title>Executing a Perl Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876702#M708028</link>
      <description>I want to ask how can i execute or call dos2ux or rm command inside perl?&lt;BR /&gt;&lt;BR /&gt;Herewith is my part of the script:&lt;BR /&gt;&lt;BR /&gt;datapath="/test/parset/data_files/finaltest/Temp"&lt;BR /&gt;npath="/temp/SAMPLE"&lt;BR /&gt;ExePath="/usr/bin"&lt;BR /&gt;perl="/opt/perl/bin"&lt;BR /&gt;cd $datapath&lt;BR /&gt;ls -l *.TDF |awk '{print $9}' |while read FILE&lt;BR /&gt;do &lt;BR /&gt;perl -e '$PerlVar=$ENV{Var};$PerlVar=~ m/^[0-9][0-9]*[\.[0-9][0-9]*]{0,1}$/g;if (pos($PerlVar)) {exec("$ExePath/dos2ux $FILE &amp;gt; $npath/$FILE")} else {exec "$ExePath/rm $FILE"}'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;When I execute it, it displays an error:&lt;BR /&gt;&lt;BR /&gt;sh: /: Cannot create the specified file.&lt;BR /&gt;sh: /: Cannot create the specified file.&lt;BR /&gt;&lt;BR /&gt;Maximum point for all correct replies.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 19:08:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876702#M708028</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2004-12-22T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Perl Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876703#M708029</link>
      <description>might not be the reason, but&lt;BR /&gt;perl="/opt/perl/bin" then&lt;BR /&gt;perl -e ....&lt;BR /&gt;&lt;BR /&gt;maybe your not using the version of perl you think you are.&lt;BR /&gt;&lt;BR /&gt;you might check your quoting, double quotes inside of single quotes.</description>
      <pubDate>Wed, 22 Dec 2004 19:47:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876703#M708029</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2004-12-22T19:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Perl Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876704#M708030</link>
      <description>Hi c,&lt;BR /&gt;&lt;BR /&gt;I think the problem lies in this area: &lt;BR /&gt;&lt;BR /&gt; {exec("$ExePath/dos2ux $FILE &amp;gt; $npath/$FILE")} &lt;BR /&gt;&lt;BR /&gt;I dont know if i use the right command (system or exec) to execute the dos2ux command. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 19:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876704#M708030</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2004-12-22T19:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Executing a Perl Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876705#M708031</link>
      <description>I found the solution. Thanks!&lt;BR /&gt;Am very new to perl and through searching in this forum found other solutions in perl "system" command by the other in this forum!</description>
      <pubDate>Wed, 22 Dec 2004 20:09:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-a-perl-command/m-p/4876705#M708031</guid>
      <dc:creator>Pando</dc:creator>
      <dc:date>2004-12-22T20:09:26Z</dc:date>
    </item>
  </channel>
</rss>

