<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Perl IO redirection problems on Windows - Comments</title>
 <link>http://community.activestate.com/faq/perl-redirect-problems-on-windows</link>
 <description>Comments for &quot;Perl IO redirection problems on Windows&quot;</description>
 <language>en</language>
<item>
 <title>Probably windows command</title>
 <link>http://community.activestate.com/faq/perl-redirect-problems-on-windows#comment-6254</link>
 <description>&lt;p&gt;Probably windows command prompt don&#039;t like white space in file names unless you encase them in quotes, but talking to your database via command prompt is not very secure anyway. Can you not get the output from within your script using DBI?&lt;/p&gt;
</description>
 <pubDate>Mon, 18 Aug 2008 04:18:31 -0700</pubDate>
 <dc:creator>San</dc:creator>
 <guid isPermaLink="false">comment 6254 at http://community.activestate.com</guid>
</item>
<item>
 <title>Reading output logs</title>
 <link>http://community.activestate.com/faq/perl-redirect-problems-on-windows#comment-3355</link>
 <description>&lt;p&gt;In UNIX I can run the following&lt;/p&gt;
&lt;p&gt;$result = system(&quot;$sql_cmd &amp;gt; $output_file&quot;) ;&lt;br /&gt;
if(!open(SQL, &quot; &amp;lt; $output_file &quot;)) {&lt;br /&gt;
  print &quot;Error: output file not opened\n&quot; ;&lt;br /&gt;
  exit 1 ;&lt;br /&gt;
}&lt;br /&gt;
#&lt;br /&gt;
### Process file should happen here... but does not.&lt;br /&gt;
#&lt;/p&gt;
&lt;p&gt;Why does this not work in Windows?&lt;br /&gt;
A) File exists.&lt;br /&gt;
B) Even a for loop trying to make successive open&#039;s does not work.&lt;br /&gt;
C) Files quoted well, all backslashes accounted for.&lt;/p&gt;
&lt;p&gt;What can I do to make this $output_file visible to windows?&lt;/p&gt;
&lt;p&gt;Best Wishes,&lt;/p&gt;
&lt;p&gt;Don Turnblade&lt;br /&gt;
MS, CISSP&lt;/p&gt;
</description>
 <pubDate>Wed, 31 Oct 2007 09:37:26 -0700</pubDate>
 <dc:creator>Arctific</dc:creator>
 <guid isPermaLink="false">comment 3355 at http://community.activestate.com</guid>
</item>
<item>
 <title>Perl IO redirection problems on Windows</title>
 <link>http://community.activestate.com/faq/perl-redirect-problems-on-windows</link>
 <description></description>
 <comments>http://community.activestate.com/faq/perl-redirect-problems-on-windows#comments</comments>
 <category domain="http://community.activestate.com/os/windows">Windows</category>
 <category domain="http://community.activestate.com/product/activeperl">ActivePerl</category>
 <category domain="http://community.activestate.com/tags/activeperl">activeperl</category>
 <category domain="http://community.activestate.com/tags/io">io</category>
 <category domain="http://community.activestate.com/tags/perl">Perl</category>
 <category domain="http://community.activestate.com/tags/pipe">pipe</category>
 <category domain="http://community.activestate.com/tags/redirect">redirect</category>
 <category domain="http://community.activestate.com/tags/windows">windows</category>
 <pubDate>Tue, 20 Mar 2007 12:17:59 -0700</pubDate>
 <dc:creator>kevinw</dc:creator>
 <guid isPermaLink="false">633 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
