BTW, the proper lib for this to belong in is Boost.Process, a GSoC proyect from 2006 that unfortunately didn't come to fruition.