Skip site navigation (1)Skip section navigation (2)
Date:      06 Jun 1998 15:03:48 -0500
From:      Dave Marquardt <marquard@zilker.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Dynamic Files
Message-ID:  <85k96uthzv.fsf@localhost.zilker.net>
In-Reply-To: Dima Dorfman's message of "Fri, 5 Jun 1998 21:27:20 -0400 (EDT)"
References:  <199806060127.VAA02288@nwalme.pair.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dima Dorfman <dima@zwb.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?85k96uthzv.fsf>