From owner-freebsd-questions Sat Jun 6 13:04:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA15198 for freebsd-questions-outgoing; Sat, 6 Jun 1998 13:04:50 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from localhost.zilker.net (jump-k56flex-1176.jumpnet.com [207.8.66.176]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA15191 for ; Sat, 6 Jun 1998 13:04:43 -0700 (PDT) (envelope-from marquard@zilker.net) Received: (from marquard@localhost) by localhost.zilker.net (8.8.8/8.8.3) id PAA12479; Sat, 6 Jun 1998 15:04:40 -0500 (CDT) To: freebsd-questions@FreeBSD.ORG Subject: Re: Dynamic Files References: <199806060127.VAA02288@nwalme.pair.com> From: Dave Marquardt Date: 06 Jun 1998 15:03:48 -0500 In-Reply-To: Dima Dorfman's message of "Fri, 5 Jun 1998 21:27:20 -0400 (EDT)" Message-ID: <85k96uthzv.fsf@localhost.zilker.net> Lines: 15 X-Mailer: Quassia Gnus v0.22/XEmacs 19.16 - "Lille" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dima Dorfman writes: > Is there a way I can create a dynamic file? What I want is that when a > program opens a file (using fopen), a pipe gets created to a program. I > can do this if the program uses popen, but I can't modify the code. > > Example: > My mailer (elm) opens ~/.sig using fopen. I have a program that > automatically generates my signature. I want the output of that program > treated as my signature. Make ~/.sig a FIFO, and have a daemon that writes your signature to it. When elm opens it, it will read the automatically generated signature. -Dave To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message