From: Ashley Moran Date: 2006-08-31T00:46:01+09:00 Subject: Re: Evading the limit of a pipe's standard input On Wednesday 30 August 2006 14:10, Ken Bloom wrote: > Since you're throwing away the output, instead of using a thread, why try > one of the following: > * popen with the mode "w" > IO.popen("psql -U test test","w") > * redirect the results from pgsql to /dev/null inside the popen call > IO.popen("psql -U test test > /dev/null","r+") > > --Ken Thanks Ken the last one was what I was looking for. I forgot to say that 'IO.popen("psql -U test test","w")' was actually one of the first things I tried, but it dumps the (several thousand lines of) psql results back into the shell, which renders the output of the script useless. Ashley -- "If you do it the stupid way, you will have to do it again" - Gregory Chudnovsky