[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: os.execute and the dreaded Windows console
- From: Taylor Venable <taylor@...>
- Date: Tue, 9 Sep 2008 16:04:08 -0400
On Mon, Sep 08, 2008 at 06:03:13PM -0500, Fabio Mascarenhas wrote:
> "...something like io.popen or whatever with some work" is a little
> bit of an understatement :-), see
> http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx on how to
> do it.
Thanks for the pointers and advice everybody. Ultimately I ended up
following this MSDN article, since I needed to implement io.popen like
this as well. Works like a charm.
--
Taylor Venable http://real.metasyntax.net:2357/
foldr = lambda f, i, l: (len(l) == 1 and [f(l[0], i)] or
[f(l[0], foldr(f, i, l[1:]))])[0]