I've a script to do some snapshots but the time it does so is very different...
once i got a snapshot under 1 sec, on the other hand it took 3 sec, but nothing else changed, i didnt even move the cursor or something.
I put the script on a ramdisk and its faster, but still swing from under 1... (1 Reply)
Pl help to me to write the below code in a simple way ...
i suupose to use this code 3 to 4 places in my makefile(gnu) ..
****************************************
@for i in $(LIST_A); do \
for j in $(LIST_B); do\
if ;then\
echo "Need to sign"\
echo "List A = $$i , List B =$$j"\
... (2 Replies)
Hi,
I have to assign a value for a varaiable based on a Input. I have written the below code:
if
then
nf=65
elif
then
nf=46
elif
then
nf=164
elif
then
nf=545
elif
then
nf=56
elif
then (3 Replies)
Here is my code. What it does is it reads an input file (input.txt which contains roughly 2,000 search phrases) and searches a directory for files that contains the search phrase. The directory contains roughly 1900 files and 84 subdirectories. The output is a file (output.txt) that shows only the... (23 Replies)
Hi,
I need a shell script to determine if a no. is either even, greater than 4, less than 8
SHELL : ksh
OS : RHEL 6
this is the if block of the script
mod=`expr $num % 2`
if || ||
then
echo "No. is either even or greater than 4 or less than 8"
fi
this code works... (2 Replies)
Hello,
I'm wondering if there is a quicker way of doing this.
Here is my mv script.
d=/conversion/program/out
cd $d
ls $d > /home/tempuser/$$tmp
while read line ; do
a=`echo $line|cut -c1-5|sed "s/_//g"`
b=`echo $line|cut -c16-21`
if ;then mkdir... (13 Replies)
Hi guys,
I feel a bit comfortable now doing bash scripting but I am worried that the way I do it is not optimized and I can do much better as to how I code.
e.g.
I have a whole line in a file from which I want to extract some values.
Right now what I am doing is :
STATE=`cat... (5 Replies)
Hi All,
I have written a new script to check for DB space and size of dump log file before it can be imported into a Oracle DB.
I'm relatively new to shell scripting.
Please help me optimize this script further. (0 Replies)
Discussion started by: narayanv
0 Replies
LEARN ABOUT DEBIAN
modgzip2dlf
MODGZIP2DLF.IN(1) LogReport's Lire Documentation MODGZIP2DLF.IN(1)NAME
modgzip2dlf - convert Common Log Format with mod_gzip extensions web server log files to DLF
SYNOPSIS
modgzip2dlf file
DESCRIPTION
modgzip2dlf converts web server log file in the common log format with extensions for mod_gzip to www DLF.
mod_gzip is an Apache extension developed by RemoteCommunications, Inc. Sourcecode is free available from
http://www.RemoteCommunications.com/apache/mod_gzip/mod_gzip. More informations can be found at
http://www.RemoteCommunications.com/apache/mod_gzip/mod_gzip_faq.htm.
mod_gzip can log informations about the compression of pages by configuring Apache to log using the 'gzip' format which can be defined as
follows:
LogFormat "%h %l %u %t "%r" %>s %b %{mod_gzip_result}n %{mod_gzip_compression_ratio}n" gzip
MOD_GZIP EXTENSIONS
The mod_gzip extensions adds two fields to the Common Log Format; see common2dlf(1):
gzip_result compression_ratio
gzip_result
The gzip's result code. Usually OK.
compressio_ratio
The ratio by which the content was compressed. A number from 0 to 100.
Log example :
127.0.01 - - [11/03/2001 12:12:01 -0400] "GET / HTTP/1.0" 200 252 "-" "Mozilla/5.0" OK 49
dsl1.myprovider.com - francis [11/03/2001 12:14:01 -0400] "GET /secret/ HTTP/1.0" 200 300 "http://www.example.com/index.html" "Mozilla/5.0" OK 74
EXAMPLES
To process a log as produced in the modgzip logformat:
$ modgzip2dlf < common.log
modgzip2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report modgzip < /var/log/httpd/common.log
SEE ALSO common2dlf(1), combined(2), referer2dlf(1)AUTHORS
Joost van Baal <joostvb@logreport.org>, Francis J. Lacoste <flacoste@logreport.org> and Egon Willighagen <egonw@logreport.org>, based on an
idea by Edwin Groothuis
VERSION
$Id: modgzip2dlf.in,v 1.10 2006/07/23 13:16:36 vanbaal Exp $
COPYRIGHT
Copyright (C) 2000, 2001 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2006-07-23 MODGZIP2DLF.IN(1)