Re: [Module-build-general] redirecting system() to a file, or ways to avoid it
Status: Beta
Brought to you by:
kwilliams
From: Ken W. <ke...@ma...> - 2002-11-27 01:48:06
|
On Wednesday, November 27, 2002, at 11:29 AM, David Wheeler wrote: > On Tuesday, November 26, 2002, at 05:13 AM, Ken Williams wrote: > >> Even though 1) and 2) are pretty ugly, I'm leaning toward >> doing one of them, if they'd work. 3) looks non-fun, and the >> further away I can get Module::Build and system() from each >> other, the better. 4) and 5) would be a lot of work, but >> probably the best from an architectural point of view. 4) >> would be really cool, actually. Note that 5) would create the >> first non-5.6-core dependency in Module::Build, though. And >> 6) seems like a bad idea. > > Can you tie STDOUT to a file to capture the output of xsubpp? Additional complication when I tried these kinds of solutions: xsubpp does an exit() when it's finished. So I either have to temporarily override *CORE::GLOBAL::exit, or I have to run it in a subprocess one way or another. By the way, it's simpler to just open() STDOUT to a file than to tie() it. -Ken |