apache access_log to printer
Perhaps a wierd question, as in why would I wish to do this but...
How would I print out each additional line to be added to the access_log file, or indeed any log file? Note: I don't simply wish to print out the complete file... Thanks |
Quote:
|
When a new entry is amended to the log file, then this new entry would be printed.
So that every 24 hours or so i can simply tear off the printed paper and see the most recent additions to the log file. Hope this helps... |
I see.
You could try creating a custom log in httpd.conf and instead of specifying a file, tell it to write directly to lp0, or whatever your printer device is...I'm not sure if it would work but you never know. Other than that you would probably need a shell script to do it, or perhaps a Perl script. ie: run it as a cron job that runs every hour or 24 hours and only prints the new entries. |
I'll spend a few hours on it at the weekend and post results here.
I was hoping that there would be some magical solution though;) Thanks |
All times are GMT -5. The time now is 09:47 AM. |