Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!rpi!uupsi!sunic!nuug!ulrik!blarsen From: blarsen@spider.uio.no (Bjorn Larsen) Newsgroups: comp.lang.perl Subject: Breaking a pipe Message-ID: Date: 11 Apr 90 06:43:53 GMT Sender: news@ulrik.uio.no (USENET News System) Reply-To: bl@nac.no Distribution: comp Organization: USE, University of Oslo, Norway Lines: 27 I have a Perl script that reads from a filehandle opened with open(F, "tail -f somefile |"); and at some point I want to close the filehandle and reopen it. However, according to the manpage, Also, closing a pipe will wait for the process executing on the pipe to complete, in case you want to look at the output of the pipe afterwards. So, naturally my script goes blissfully to sleep waiting for the pipe to complete. How do I break a pipe if I *don't* want to look at the output of the pipe afterwards? -- Bjorn Larsen University of Oslo, Norway bl@nuug.no +47 2 45 35 30