#include int main() { FILE *tpPipeFp; if((tpPipeFp = popen("test", "w")) == NULL) { printf("Can't open pipe\n"); exit(); } else printf("I've opened the pipe\n"); pclose(tpPipeFp); }