So, shaking some cobwebs loose here. How do I replace the following: system("echo stuff | somebinary arg1 arg2"); With a fork/exec ?? (Digging out my old C books....) --