Just a basic question from someone who is new to pipes.
The statement of the problem is simple :
Instead of using popen(progname,"w"),
I wish to use the elementary functions pipe, fork, dup2, etc.
to get the same effect. You may well wonder why I am trying to do this -
I am programming in another language (Fortran 95)
where a library provides equivalents
for pipe(), fork(), dup2() etc., but [not] for popen(). I do NOT wish to depend upon underscores in the object code
and want to make my code pure Fortran 95.
I would appreciate it if someone could give me a flowchart
(with proper calls like pipe() with the arguments).
I see that you've already met our indigenous trolls.
If you decide to become a regular subscriber,
you will learn to recognize and ignore them.
POPEN(3) Linux Programmer’s Manual POPEN(3)
NAME
popen, pclose - process I/O
SYNOPSIS
#include <stdio.h>
FILE *popen(const char* command, const char* type);
int pclose(FILE* stream);