A simple Method in C to hide the output of any shell command and storing the output in Buffer . You can manipulate the output in your way or you can process the output as string