Named pipes: mknod()
mknod( “namedPipe”, S_IFIFO, 0 );
chmod( “namedPipe”, 0600 );
int fd = open( “namedPipe”, O_WRONLY );
dup2( fd, fileno(stdout) ); close( fd );
execlp( "ruptime", "ruptime", (char *) 0 );
int fd = open( “namedPipe”, O_RDONLY );
dup2( fd, fileno(stdin) ); close( fd );
execlp( "sort", "sort", "-r", (char *) 0 );