Article View: comp.unix.programmer
Article #161Re: Named pipes
From: Donn Cave
Date: Tue, 28 Jul 1992 16:38
Date: Tue, 28 Jul 1992 16:38
29 lines
1542 bytes
1542 bytes
tesco@bumetb.bu.edu (Dances With Babes) writes: | I have recently discovered named pipes but can't seem to get them to do | what I want. Is it possible to use a background process to read from a | named pipe while many other processes write to that named pipe. | When i try to test this capability in the unix k shell the background | process ends. | ex. | mknod testpipe p | cat testpipe & | ls > testpipe | The "cat" process ends after the ls is sent to the screen. | I've been told by IBM tech support that this is the way it supposed to work. | This is on an RS6000 running AIX ver 3.2.2. IBM tech support is right, but not exercising much imagination. Try this: mknod testpipe p (echo holding; sleep 60) > testpipe & ls > testpipe The pipe should stay open as long as there's at least one process holding it open for write. Donn Cave, University Computing Services, University of Washington donn@cac.washington.edu
Technical Details
Message-ID:
<1992Jul28.163824.15886@u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!donnReferences:
<19076@fritz.filenet.com> <14u80cINNbd8@grasp1.univ-lyon1.fr> <1992Jul26.165838.1278@news.eng.convex.com> <92033@bu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!usenet.coe.montana.edu!news.u.washington.edu!carson.u.washington.edu!donn From: donn@carson.u.washington.edu (Donn Cave) Newsgroups: comp.unix.programmer Subject: Re: Named pipes Message-ID: <1992Jul28.163824.15886@u.washington.edu> Date: 28 Jul 92 16:38:24 GMT Article-I.D.: u.1992Jul28.163824.15886 References: <19076@fritz.filenet.com> <14u80cINNbd8@grasp1.univ-lyon1.fr> <1992Jul26.165838.1278@news.eng.convex.com> <92033@bu.edu> Sender: news@u.washington.edu (USENET News System) Organization: University of Washington Lines: 29