[comp.unix.questions] how to read AND write the same popen

millercb@phoenix.Princeton.EDU (Clifford B Miller) (10/14/90)

Under a System V environment (Silicon Graphics 3.2.1 IRIX specifically),
I want to use popen(3) as both an input and output filter.  In other words,
I want to be able to write out to a pipe from popen("cmd","r") and also be
able to capture the output that comes from that command (through another
stream).  I would like to avoid having to write a temporary file because
my application may require a *LARGE* amount of data to be written through
this filter, and I really don't need or want it saved to disk since this
could easily eat all my disk space.  Any suggestions?  Please e-mail to
cliff@research.nec.com (any hint at all would be appreciated, even if I
have to abandon "popen").
 Clifford B. Miller, Research Associate / Systems Administrator
 NEC Research Institute, 4 Independence Way, Princeton, NJ  08540
 Internet: cliff@research.nec.com		phone: (609) 951-2688
 UUCP: ...princeton!necserve!cliff

cpcahil@virtech.uucp (Conor P. Cahill) (10/14/90)

In article <3326@idunno.Princeton.EDU> millercb@phoenix.Princeton.EDU (Clifford B Miller) writes:
>Under a System V environment (Silicon Graphics 3.2.1 IRIX specifically),
>I want to use popen(3) as both an input and output filter.  In other words,
>I want to be able to write out to a pipe from popen("cmd","r") and also be

RTFFAQ posting to this newsgroup.  (specifically question # 26)


-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 

ian@hpopd.HP.COM (Ian Watson) (10/16/90)

> RTFFAQ posting to this newsgroup.  (specifically question # 26)
  ^^^^^^
	What's this mean ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Watson, HP Pinewood Information Systems Division, England.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Phone :				(Intl)+44 344 763015
Unix mail (Internet) :		ian@hpopd.HP.COM
Unix mail (UUCP) :		...!hplabs!hpopd!ian
Openmail :			ian watson/pinewood,lab,hpopd
Openmail from Unix :		ian_watson/pinewood_lab_hpopd@hpopd
HPDesk :			Ian WATSON/HP1600
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ravi@earth.ce.nwu.edu (Ravi Sinha) (10/18/90)

In article <7980007@hpopd.HP.COM> ian@hpopd.HP.COM (Ian Watson) writes:
>> RTFFAQ posting to this newsgroup.  (specifically question # 26)
>  ^^^^^^
>	What's this mean ?

Read The Friendly (:-) "Frequently Asked Questions".

---------------------------------------------------------------------
Ravi Sinha			|  As usual, the opinions here 
Northwestern University		|  are mine, and only mine.
ravi@earth.ce.nwu.edu		|  Who'd want to claim these anyway?

cpcahil@virtech.uucp (Conor P. Cahill) (10/18/90)

In article <7980007@hpopd.HP.COM> ian@hpopd.HP.COM (Ian Watson) writes:
>> RTFFAQ posting to this newsgroup.  (specifically question # 26)
>  ^^^^^^
>	What's this mean ?

Read The F...ing Frequently Asked Questions.

Probably should have said RTFFAQP (posting).

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 

wells@sleepy.UUCP (Douglas Wells) (10/23/90)

In article <7980007@hpopd.HP.COM>, ian@hpopd.HP.COM (Ian Watson) writes:
> > RTFFAQ posting to this newsgroup.  (specifically question # 26)
>   ^^^^^^
> 	What's this mean ?

    Summary says it all!
-- 
*	    Douglas Wells	[  "I think, therefore I think I am"  ]		 *
*  Bellmail: 206-865-4660							 *
*  Email:  {uunet,  uw-beaver!ssc-vax!shuksan!tahoma} ! bcstec ! sleepy ! wells	 *
*  Slugmail: Boeing Computer Services, P.O.Box 24346 MS:7M-44, Seattle WA 98124	 *