I would like to run a command into which I will feed data via a pipe (sysopen). However, at the same time I would like to read the output from that command. I cannot seem to find an example or a good explanation of how to sysopen a command to write to its STDIN and read from its STDOUT and STDERR. Can someone tell me how to do this? Thanks.