Re: IDEA: Process-Special files

David Woodhouse (David.Woodhouse@mvhi.com)
Mon, 19 Oct 1998 22:47:22 +0100


thockin@isunix.it.ilstu.edu said:
> For example: apache open()s a .htaccess file (set like this) which is
> a script: grep ^ww /etc/passwd #(simple, i know). When apache
> open()s it, it does not see that one line, but instead sees the
> results of that line executing. Granted, this would not be the
> FASTEST process in the world, but perhaps some sort of dependancy/
> cache system could help there.

> I imagine this would be a chattr controlled option.

> Has anyone ever thought about something like this? Does it sound like
> something that would be worthwhile?

Named pipes come close.

$ cd ~/public_html
$ mknod .htaccess p
$ while true; do grep ^bin /etc/passwd > .htaccess ; done &
$ cat .htaccess
bin:*:1:1:bin:/bin:
$ cat .htaccess
bin:*:1:1:bin:/bin:

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/