[plug] Named pipe. Solution to programming problem?

Timothy White weirdo at tigris.org
Thu Nov 18 17:34:16 WST 2004


I want to have a program 'open' a file and read in the contents. The 
contents of the file need to change easily and at any time. The contents 
of the file are generated from a number of different sources.

Q: Can I have a program so that it is run each time a 'file' is open and 
the stdout of the program is feed through as the file contents?

e.g. less opens ~/pipes/active_computers and a program called 
currently_active_computers is run giving the below output[1] which then 
displayed using less.

I don't want the program always running, only when called.
E.g. I don't want to run currently_active_computers every 5 seconds to 
ensure that the list of active computers is up to date.

Thanks
Tim
[1]---
student01
student02
student03
student06
student08
teacher03
teacher08
public576
public030
public234
---
-- 
Tim White - Use the Fox, Luke!
PGP/GPG id: 602E944D, Pub Key Serv: subkeys.pgp.net
Fingerprint: 04C2 9682 B7B2 3006 009D  A9F3 067E EDCD 602E 944D
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me 
spread!
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20041118/803ae7d7/attachment.pgp>


More information about the plug mailing list