K
Kim Helliwell
Is there a way to pipe output to a command without the command blocking?
By that I mean: I want to start several xgraph (an x-window graphing app)
sessions from a Perl script, and so far, each session blocks until I dismiss
the window.
I tried:
open(GRAPH, "| xgraph &")
But that gives an error from xgraph that the data stream had errors.
I'm afraid I will have to invoke the whole fork/exec and IO redirection
machinery to do this, but I'd like to find a simpler way if anyone knows
one.
I have been reading the FAQ on system calls, and some of the questions come
close to helping, but not quite.
Any help appreciated. Email me (preferably) at (e-mail address removed)
Thanks,
Kim Helliwell
By that I mean: I want to start several xgraph (an x-window graphing app)
sessions from a Perl script, and so far, each session blocks until I dismiss
the window.
I tried:
open(GRAPH, "| xgraph &")
But that gives an error from xgraph that the data stream had errors.
I'm afraid I will have to invoke the whole fork/exec and IO redirection
machinery to do this, but I'd like to find a simpler way if anyone knows
one.
I have been reading the FAQ on system calls, and some of the questions come
close to helping, but not quite.
Any help appreciated. Email me (preferably) at (e-mail address removed)
Thanks,
Kim Helliwell