<?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: How to redirect stdout of a command in perl script. in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383144#M9284</link>
    <description>I'm not sure why a question about perl on Windows is in the HP-UX forum, but have you tried:&lt;BR /&gt;&lt;BR /&gt;system("$COMMAND &amp;gt; $DIR\\srvinfo.txt");</description>
    <pubDate>Thu, 19 Mar 2009 14:18:30 GMT</pubDate>
    <dc:creator>Heironimus</dc:creator>
    <dc:date>2009-03-19T14:18:30Z</dc:date>
    <item>
      <title>How to redirect stdout of a command in perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383140#M9280</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How to redirect an output generated by a command using perl in windows. ( As we do in shell scripts ls &amp;gt; ls.out ).&lt;BR /&gt;Here is my script.&lt;BR /&gt;&lt;BR /&gt;$DIR="C:\\Documents and settings\\Administrator";&lt;BR /&gt;$COMMAND="srvinfo -ns";&lt;BR /&gt;# srvinfo is the command available in &lt;BR /&gt;# Windows2003 reskit. I have attached the &lt;BR /&gt;# command too.&lt;BR /&gt;&lt;BR /&gt;Now need to execute the srvinfo -ns and redirect the o/p to a file called srvinfo.txt at the $DIR location.&lt;BR /&gt;&lt;BR /&gt;Can you please guide me to complete this.&lt;BR /&gt;Thanks,&lt;BR /&gt;Regards,&lt;BR /&gt;Raghu.</description>
      <pubDate>Thu, 19 Mar 2009 08:21:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383140#M9280</guid>
      <dc:creator>Raghu Chikkamenahalli</dc:creator>
      <dc:date>2009-03-19T08:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect stdout of a command in perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383141#M9281</link>
      <description>The simple way would be to use a batch file like&lt;BR /&gt;&lt;BR /&gt;a.bat&lt;BR /&gt;&lt;BR /&gt;C:\Documents and settings\Administrator\srvinfo -ns &amp;gt; srv_log.txt&lt;BR /&gt;&lt;BR /&gt;and just execute that a.bat file&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Mar 2009 08:47:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383141#M9281</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2009-03-19T08:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect stdout of a command in perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383142#M9282</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to use the above said infomation inside a perl script.&lt;BR /&gt;&lt;BR /&gt;-Raghu</description>
      <pubDate>Thu, 19 Mar 2009 08:57:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383142#M9282</guid>
      <dc:creator>Raghu Chikkamenahalli</dc:creator>
      <dc:date>2009-03-19T08:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect stdout of a command in perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383143#M9283</link>
      <description>its the windows batch script,&lt;BR /&gt;&lt;BR /&gt;put the entire command in a text file , rename it to .bat file and execute it</description>
      <pubDate>Thu, 19 Mar 2009 09:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383143#M9283</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2009-03-19T09:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect stdout of a command in perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383144#M9284</link>
      <description>I'm not sure why a question about perl on Windows is in the HP-UX forum, but have you tried:&lt;BR /&gt;&lt;BR /&gt;system("$COMMAND &amp;gt; $DIR\\srvinfo.txt");</description>
      <pubDate>Thu, 19 Mar 2009 14:18:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383144#M9284</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-03-19T14:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to redirect stdout of a command in perl script.</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383145#M9285</link>
      <description>Heironimus,&lt;BR /&gt;&lt;BR /&gt;Since the section heading is scripting and languages, thought this is the right section, anyways Sorry for the inconvenience.&lt;BR /&gt;&lt;BR /&gt;Tried the option. but it didn't work. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
      <pubDate>Thu, 19 Mar 2009 15:36:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/how-to-redirect-stdout-of-a-command-in-perl-script/m-p/4383145#M9285</guid>
      <dc:creator>Raghu Chikkamenahalli</dc:creator>
      <dc:date>2009-03-19T15:36:25Z</dc:date>
    </item>
  </channel>
</rss>

