From: Jan Koprowski Date: 2007-12-02T20:10:02+09:00 Subject: Using popen with 0,1,2,3,4 streams Hi ! I try to run command system and get streams handlers to 0 (stdin), 1(stdout), 2(stderr), 3(myOwnStdIn1), 4(myOwnStdIn2). I do something like that in PHP by proc_open and table of pipes, but here I don't know how I can get handlers to process streams. I know that this code is bad but I think something like this: process = popen('command', 'w+'); stdin = process.new(0, "w"); stdout = process.new(1, "r"); etc... But new is a static method. What i should to do ?