Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

RE: Apache log splitter/compressor

by jjhorner (Hermit)
on Jun 12, 2000 at 19:32 UTC ( #17720=note: print w/replies, xml ) Need Help??


in reply to Apache log splitter/compressor

lhoward, some AM below requested this in mod_perl format.

Do you mind if I rewrite for use in mod_perl? Or are you going to do it?

J. J. Horner
Linux, Perl, Apache, Stronghold, Unix
jhorner@knoxlug.org http://www.knoxlug.org/

Replies are listed 'Best First'.
RE: RE: Apache log splitter/compressor
by lhoward (Vicar) on Jun 12, 2000 at 19:40 UTC
    Feel free to rewrite it in mod_perl format. I currently have no plans to rewrite it in mod_perl myself. I originally wrote this outside of mod_perl because I did not do mod_perl at the time of its original development.

    One feature I would love to add to this program is real-time reverse-DNS lookups of browsing hosts. The tricky part about that is you have to do it in a way that doesn't block the webserver (so it isn't slowed down).

      I sometimes have issues determining when something should be programmed or scripted. If I need my nightly logs dns checked, should I write the program to do it automagically, or should I just set a cron job to do logresolve every night.

      I guess I'm not the only person who has ever had this issue.

      J. J. Horner
      Linux, Perl, Apache, Stronghold, Unix
      jhorner@knoxlug.org http://www.knoxlug.org/
      

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://17720]
help
Chatterbox?
[jdporter]: without using a tmp file
[1nickt]: tobyink perl -MTypes::Standard= is_Int -Mstrict -wE 'say 1 if is_Int 1.0'
[jdporter]: so that I can use the existing expand unix util. Otherwise, I'll probably use Text::Tabs.
[1nickt]: pryrt I guess I don;t really care if user 42 logs on as 42.0 ... more of an academic question at this point.
[LanX]: jdporter: open PIPE,'-|' ?
[LanX]: oh you want the result line by line?
[jdporter]: ok, LanX, then what?
[jdporter]: It doesn't have to be line by line. Just "my program" "writes" to the external prog and also/then "reads" from it.
LanX open (You are not allowed to open to a command that pipes both in and out, but see IPC::Open2, IPC::Open3, and Bidirectional Communication with Another Process in perlipc for alternatives.)
[jdporter]: IPC::Open2, I guess

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-05-24 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?