You could do something like
system("cc -c test.cpp | tee out.log")
or
system("cc -c test.cpp >> out.log")
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116
yes 'tee' is a unix command that splits the pipe into stdout and files. Probably i should have specified that these will not work for windows.
Agni
Practically a Master Poster
655 posts since Dec 2007
Reputation Points: 431
Solved Threads: 116