Hi:
I am trying to do a double pipe with popen but am not
having much luck.
From the command line I do the following:
cat gnu_input | gnuplot | xv - &
Whe automating with Ruby, I don't want to write gnu_input into a file.
So I tried
cmd = "gnuplot | xv - &"
IO.popen(cmd, "w") {|f| f.puts gnu_input}
And it fails, giving the reason as an empty temp file.
However, if I don't put the job in the background, then
it works. EG
cmd = "gnuplot | xv -"
IO.popen....
works.
Is there a way to put xv in the background after the popen call
or another way to do this so xv starts in the background?
Thanks
=========================================================
Jim Freeze
jim / freeze.org
---------------------------------------------------------
No comment at this time.
http://www.freeze.org
=========================================================