Hello,
I've written a simple script to capture web hits that match a certain criteria (e.g., referrer contains "google") and write those to a separate log file. That file grows pretty big and every now and then I want to purge it and keep only, say, the last 100 rows. I was going to do this...
I've set the file to CHMOD 755. If I just type grep_app at the command prompt I get:
bash: grep_app: command not found
If I type ./grep_app then it runs fine.
I can execute the one line script by typing ./grep_app from the command line. This produces about 200 lines of response.
When I execute the Perl code, all I get in response is:
Content-type: text/html
Thanks for the feedback. Others have told me to do the whole thing in Perl too. Part of the goal of my project is for me to learn how to use different Perl functions. In this case I'm trying to learn how to have a Perl program call another app, take output from the app, and then do something...
I'm a perl newbie, so pls be kind.
I've written a simple script that greps a log file for specific records. I want to take the output of this script and use it in a perl program. I can't seem to get this to work. I've tried the "system" and "qx//" functions unsuccessfully.
Any help appreciated.
You might want to take a look at Sandstorm. They've got an appliance that stores raw tcpdump data and lets you recreate entire sessions. They have an interface for searching through the data to look for specific traffic.
Do you have log records from when they were onsite? You might want to go look through those to see what they were up to, what other systems they touched, etc.
What platforms are you looking to pull logs from? There are lots of tools out there for various specific log sources. I've been looking at Addamark (http://www.addamark.com) since they claim to support any platform.
I've heard this is a problem for lots of folks dealing with NISPOM and DCID 6/3. I found a site that says they can audit IRIX logs, and lots of other sources. See http://www.addamark.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.