1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#include <pipeline.h> #include <stdio.h> int main() { pipeline *p; int status; printf("running ls | grep c\n"); p = pipeline_new (); pipeline_command_args (p, "ls", NULL); pipeline_command_args (p, "grep", "c", NULL); status = pipeline_run (p); return status; } |