1. Purpose 2. Copying |
3. Installation 4. Downloading |
For example, you could use it to start two ppp processes which need to talk to each others (for VPN solutions).
Twinpipe starts the two processes (shell commands) and makes sure that one's stdout is another's stdin.
Two versions are included: A C-language version and shellscript-version.
The shellscript-version uses a named pipe (fifo) to do the trick, and
the C-language version just creates two pipes and executes the programs.
Example of usage: twinpipe 'echo a;head -n 1 >&2' 'echo b;echo c'
The package, when compiled, also builds a usleep shell utility, which
takes only one argument: microsecondcount, and expectedly sleeps the
wanted duration. Example: usleep 200000
(sleeps 0.2s).
* No warranty. You are free to modify this source and to
* distribute the modified sources, as long as you keep the
* existing copyright messages intact and as long as you
* remember to add your own copyright markings.
* You are not allowed to distribute the program or modified versions
* of the program without including the source code (or a reference to
* the publicly available source) and this notice with it.
$ make $ su # make install
Generated from progdesc.php
(last updated: Tue, 14 May 2002 17:52:11 +0300)
with docmaker.php
(last updated: Tue, 14 May 2002 17:41:54 +0300)
at Tue, 14 May 2002 17:52:11 +0300