What I want is this:
Having a file called file somewhere in the filesystem with a content something like:
#!/bin/whatever-interpreter-you-want
echo 'line1'
echo 'line2'
When ANY (almost any since must exist a way to edit the script itself) program opens file to read it gets:
line1
line2
As its contents instead of:
#!/bin/whatever-interpreter-you-want
echo 'line1'
echo 'line2'
Something like file contents being executed on the fly by the filesystem or the kernel itself (please, no cron, no inotify, no duct tape).
