From: Gary Wright Date: 2010-01-12T08:10:57+09:00 Subject: Re: redirecting output ruby and from stdout results in blank file On Jan 11, 2010, at 5:05 PM, comp.lang.ruby wrote: > > Thanks a lot for the suggestion. However, std_error is redirecting > fine and I have noticed that when I omit the redirection characters in > the open command, the ouput is outputted to stdout, as I expect. I am > happy to switch to popen if that's the only solution -- I just find > this to be really weird behavior. Any guesses about why this happened? Is the standard output file being created and then is found to be empty or is it not being created at all? If it isn't getting created at all, then there is something wrong with your command line. If it is being created but is empty, then I would focus on the webkit program. Things to think about: Take a look at the constructed command line. You didn't show us that in your email. Is webkit designed to behave differently when writing to the terminal versus a file? Is the output being buffered when redirected to a file versus to the terminal? Gary Wright