Changing the path of File Descriptors.
MMkay. This is a general question regarding the first three file descriptors (stdin, stdout, stderr). They all have defaults; the keyboard, the monitor, and the monitor, respectively. How are these changed? For instance if you hooked up too monitors. How could you have your stdout be directed to one and your stderr directed to the other? What about having stdin directed to a microphone? Is this changed in code or is this a setting in the operating system that has to be changed? I don't need this for a program I was just wondering about it and figured this would be a good place to ask.
I might also expect the answer to be that these paths can't be changed. For instance if you had a second monitor, it might be it's own separate descriptor. Where 1 is your stdout 4 might be your secondary output. I don't really know I'm just speculating. What do the descriptors coorespond with, anyway? Are they dealing with the ports on the back of your computer or what? Any light that could be shead on this subject would be wonderful.