bcarroll has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Crazy question about writing to a text file that is actually an executable...
by BrowserUk (Patriarch) on Sep 07, 2012 at 04:01 UTC | |
by tobyink (Canon) on Sep 07, 2012 at 13:06 UTC | |
|
Re: Crazy question about writing to a text file that is actually an executable...
by Anonymous Monk on Sep 07, 2012 at 02:51 UTC | |
|
Re: Crazy question about writing to a text file that is actually an executable...
by cheekuperl (Monk) on Sep 07, 2012 at 02:44 UTC | |
|
Re: Crazy question about writing to a text file that is actually an executable...
by Marshall (Canon) on Sep 07, 2012 at 11:44 UTC | |
by bcarroll (Pilgrim) on Sep 07, 2012 at 17:49 UTC |