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