Date: Thu, 28 Oct 93 19:47:38 PDT From: Peter Crowley To: turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp, vic AT THEORY DOT qdeck DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: popen Text item: > If you don't really need pipes, but just want to pass input to a >child process which is a filter, this can be done by using temporary >files. See the MS-DOS implementation of gawk (you can get it at any >GNU mirror, eg wuarchive.wustl.edu). It doesn't work quite right "out >of the box" (it was intended for I think Turbo and MSC) but the mods >needed for djgpp are obvious and take about fifteen minutes (look for >"#ifdef MSDOS"). Attached is a popen() implementation which can be used by those who - as mentioned above - do not need real pipes. Peter Crowley Quarterdeck Offices Systems pcrowley AT qdeck DOT com The following is an attached File item from cc:Mail. It contains eight bit information which had to be encoded to insure successful trans- mission through various mail systems. To decode the file use the UUDECODE program. --------------------------------- Cut Here --------------------------------- begin 644 PIPE.C M+RH@<&]P96XO<&-L;W-E('-U<'!O7)I9VAT(#$Y.3,@475A2P@;6]D:69Y+"!A M;F0 AT 9&ES=')I8G5T92!T:&ES#0H@('-O9G1W87)E(&9O7)I9VAT(&YO=&EC92!A<'!E87(@:6X AT 86QL(&-O<&EE7-T96TH<')O9RD[#0H-"@D):68HPT*"0D)9F-L;W-E M*')E="D[#0H)"0ER96UO=F4H=&UP*3L-"@D)"7)E='5R;B!.54Q,.PT*"0E] M#0H)"7)E='5R;B!R970[#0H)?2!E;'-E(&EF*"IM;V1E(#T]("=W)RD@>PT* M"0DH=F]I9"ET;7!N86TH=&UP*3L-"@T*"0ER970@/2!F;W!E;BAT;7`L(")W M*R(I.PT*"0EI9B AT A"`J('-I>F5O9B AT J<&EP97,I*3L-"@D)?0T*"0EI M9B AT A<&EP97,I(&=O=&\@9F%I;#L-"@E]#0H-"@EI9BAPPT*"0EP:7!EPT*"0ER96UO=F4H<&EP97-;9F1=+FYA;64I.PT*"0EF