I have some legacy scientific code running on a Rocks cluster, with SGE. I have an application-specific job submission script that generates qsub scripts (i.e. the script which Sun Grid Engine takes a
I\'d like to compose two (or more) streams into one. My goal is that any output directed to cout, cerr, and clog also be outputted into a file, along with the original stream. (For when things are log
I\'m looking for a way in C to programmatically (ie, not using redire开发者_开发百科ction from the command line) implement \'tee\' functionality such that my stdout goes to both stdout and a log file.