Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

logprn(1) [debian man page]

logprn(1)							     logtools								 logprn(1)

NAME
logprn - merge Common-Log Format web logs based on time-stamps SYNOPSIS
logprn logfile idle-time[:max-wait] command DESCRIPTION
The logprn program is designed to print new data that is appended to log files. It will wait until a specified amount of time has elapsed since the last write to the file before printing the data. It will print the data by pipeing it to a specified command. The command will be run by popen(3) so the usual shell commands will operate (whether this is a bug or a feature is a matter of opinion). OPTIONS
logfile specifies a file to read data from. It should be a regular file not a pipe, device, or anything else. idle-time max-wait command EXIT STATUS
0 Never happens, this program will run forever. 1 Bad command-line parameters or couldn't stat the log file on startup - couldn't start the program. 2 File disappeared or became unreadable at run-time. 3 Can't run the specified command. AUTHOR
This program, its manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>. BUGS
Uses popen (3) but I consider this a feature not a bug. SEE ALSO
popen(3) Russell Coker <;russell@coker.com.au> 0.06 logprn(1)

Check Out this Related Man Page

clfdomainsplit(1)							 1							 clfdomainsplit(1)

NAME
clfdomainsplit - split Common-Log Format web logs based on domain name SYNOPSIS
clfdomainsplit [--help] [-i input] [-d defaultfile] [-c cfg-file] [-o directory] DESCRIPTION
The clfdomainsplit program will split up large CLF format web logs based on domain name. This is for creating separate log analysis passes for each domain hosted on your server. OVERVIEW
The input parameter specifies the file to read (default is standard input). The defaultfile parameter specifies where data goes if it doesn't have a domain (either it has an IP address for the server or it doesn't have the server-name - the URL is relative to the root of the web server only). The default will be to print them on standard error. The cfg-file parameter is for specifying the rules for determining what is a different domain name. For example www.coker.com.au belongs in the same file as coker.com.au and abc.coker.com.au because domain names ending in .au have three major components. The domain names www.workbenelux.nl and workbenelux.nl belong in the same file because domain names ending in .nl have two major components (as do .com, and .gov), wheras anything ending in .va belongs to the same organization. The rules are of the form number:pattern which lists the number of domain parts which are significant (2 for .com and for a simple string comparison, the default will be: 2:com 2:nl 3:au 3:uk If no config file is specified then it will look for /etc/clfdomainsplit.cfg. Of course comments start with #. Also note that the first match will be used! The directory parameter is to specify the location for the files to be created (default is the current directory). I recommend that you use a directory for this and nothing else as you never know how many files may be created! EXIT STATUS
0 No errors 1 Bad parameters AUTHOR
This program, its manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>. SEE ALSO
clfsplit(1),clfmerge(1) russell@coker.com.au 0.06 clfdomainsplit(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ultra10 ethernet troubleshooting

The problem is alot worse that I thought. I ran the 'test net' after I did the 'stop a' thing and the system worked once, but the second time it froze. No matter what i tried I couldn't get the system out of a frozen state so I had to cycle the power. I thought lemme check the entire system to... (5 Replies)
Discussion started by: xyyz
5 Replies

2. UNIX for Dummies Questions & Answers

Renaming files to have date/time in filename

I have a program that will export my data to a single file, but it assigns a file name that is overridden every time I run the program. I need to change the file name to have a sequential number in the filename. How do I rename a file so that the filename contains the system date and time. I want... (5 Replies)
Discussion started by: wayneb
5 Replies

3. Programming

running a program for a specified time

how can i run a program for a specified time? i need to print a current time during program execution. (3 Replies)
Discussion started by: prosputko
3 Replies

4. Shell Programming and Scripting

History and AutoComplete

Hi, I enabled the Autocomplete of filename by the command set -o emacs But i couldn't enjoy the benifits of vi anymore. i.e I couldn't get the command history by pressing Esc and k. How to enjoy both of this features at a time.? Regards Karthik (3 Replies)
Discussion started by: fermisoft
3 Replies

5. Shell Programming and Scripting

Printing Columns in Unix

ok. this is a bit of a difficult question but i've been trying to figure this out for quite some time but couldn't. how do I print columns on the screen? like take for instant. using the ls and the file command, how do i print it so i can have the filenames on the left hand side and the... (3 Replies)
Discussion started by: Terrible
3 Replies

6. Shell Programming and Scripting

How to read max of 10 file at a time?

Hi All, Please advise . Welcome more suggestions. For examples, I have 1000 file with prefix x??? In fact, I want to convert them to x???.txt with max 10 files at a time. As such, I will need to call another script to read from those 10 *txt files and sleep 5000 to convert the next 10 again.... (10 Replies)
Discussion started by: cedrichiu
10 Replies

7. UNIX for Advanced & Expert Users

What "set +u" does?

Dear Friends, I couldn't able to find what "set +u" does. Please tell me what is the significance of this command. Thanks in advance, swamymns (3 Replies)
Discussion started by: swamymns
3 Replies

8. UNIX for Advanced & Expert Users

Log files

Hello, I want to delete a logfile but not all the message in the log; example, wait wait wait wait hello hello hello hello so in the logfile i will delete only the text hello and the wait not. (4 Replies)
Discussion started by: mp3catcer1
4 Replies

9. Programming

popen hangs program during cmd execution

How can I get around this? when my program reaches the following popen job it halts the program until the ping/netstat/ipconfig/traceroute is completed then resume to the rest of the program... FILE *in; extern FILE *popen(); char buff; char newline; char nstat; char nping; ... (5 Replies)
Discussion started by: Jess83
5 Replies

10. Shell Programming and Scripting

found count of them

Hi guys i must write a program which read logfile of my program and print the result. i wrote this and i want print of the user who have virus. i extract user and put it in file, now i want know each user have how many virus. how can i do this in bash, my file is like: and soso i... (5 Replies)
Discussion started by: Skipper
5 Replies

11. Programming

question about popen in C

does popen print out the executed string result in stdout, or just evaluate it and not print the result? (30 Replies)
Discussion started by: omega666
30 Replies

12. Programming

Shelling Out to Give a System Command Drains Free Memory

I am working on a large program which is always up and must run in as many Linux flavors as possible, i.e. be portable. I have created a number of general utility functions for common tasks it needs to do, and one of these utility functions goes out to the shell to give a Linux command and return... (5 Replies)
Discussion started by: BrandonShw
5 Replies

13. Shell Programming and Scripting

Total time taken

Hi Friend, Need your help. I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command . Example of Log file : Start Loading ---Thu Aug 2 17:14:09 EDT 2012 Load... (5 Replies)
Discussion started by: deep_kol
5 Replies

14. Shell Programming and Scripting

grouping log files based on counter

I have my log file as below 00:18:02 - Nothing normal; Garbage Collection kicked off & running from last 3 min... 00:19:02 - Nothing normal; Garbage Collection kicked off & running from last 4 min... 00:19:02 - Nothing normal; Garbage Collection kicked off & running from last 4 min...... (11 Replies)
Discussion started by: manas_ranjan
11 Replies

15. Shell Programming and Scripting

Fetching timestamps from the logs.

Dear Experts, I need some help to get the time stamps from the Unix logs. Basically I am want to analyze which step is taking more time. Please give me some inputs. Thanks a lot for your help. I have got different codes for each for phase as we can see in the logs 00002 – UPDT Starting... (5 Replies)
Discussion started by: srikanth38
5 Replies