From: Daniel Berger Date: 2008-02-20T10:56:52+09:00 Subject: Re: Strange Windows warning with IO.popen: The process tried to write to a nonexistent pipe Luis Lavena wrote: > On Feb 19, 8:02 pm, Daniel Berger wrote: >> Hi all, >> >> Ruby 1.8.6 >> Windows XP Pro >> >> I tried this standalone snippet: >> >> io = IO.popen('date /t') >> >> Running that with -w I get this warning: >> >> The process tried to write to a nonexistent pipe >> > > I got the same without the -w option. > > This is related to the redirection of stdio and stdout and the > premature termination of them (in the child process spawn by ruby). > > If you add a Kernel.gets() or anything that delays the script > termiantion you wouldn't get the warning. So, how do we fix it Luis? Regards, Dan