Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!usc!apple!sun-barr!decwrl!shelby!polya!rokicki From: rokicki@polya.Stanford.EDU (Tomas G. Rokicki) Newsgroups: comp.sys.amiga Subject: Re: Relying on ARP (was Re: My AmigaDOS 1.4 wishlist (one among thousands!)) Keywords: popen, pclose, unix, arp Message-ID: <11119@polya.Stanford.EDU> Date: 4 Aug 89 19:15:34 GMT References: <12878@well.UUCP> <26758@agate.BERKELEY.EDU> <20904@cup.portal.com> <126@egrunix.UUCP> Sender: Tomas G. Rokicki Distribution: na Organization: Stanford University Lines: 13 > > I've always wanted to be able to fopen("|lpr", "w"), for instance, to > Since no one else has posted an answer (I'm sure they will), I guess > I'll do the honers. Unix has EXACTLY what you want. The system call is called > popen! (Stands for Pipe? Process? open). Is has the following syntax: You missed my point. I know it's possible like that. I want it to be part of the file system semantics, so when I'm typing to a file requestor or asked to supply a path, I can type |lpr. I don't want to change every program to look at the first character, if it's a pipe symbol turn it into a popen call. -tom