http://www.perlmonks.org?node_id=992222

bcarroll has asked for the wisdom of the Perl Monks concerning the following question:

I had a crazy idea that I wanted to pass by the fellow monks, though not exactly specific to perl.

Is it possible to create an executable (compiled perl or other) that can trick the OS into thinking it is a text file? My thought is if such a thing can be done, this could be utilized to send logfile data to anything (remote database, parser, etc...).

Here is a use case: I have a bunch of servers that run various proprietary software applications that are only capable of writing logfiles locally, and I don't have access to these remote systems. If I can somehow replace the default logfile with this "magic", anything written to this file could be sent to my database, log collector server, etc...

Is this just a pipe dream?