Running Debian 7. Is it possible that when a program opens a file we can give it output from a currently running file.
Example: We have a C/Java program running. This is (attached)? to file /etc/motd as an example. When ssh or any other program goes to read /etc/motd the C/Java program provides output instead. So instead of the file being read from disk it is being read from the C/Java program.