I wrote the below shell script to generate a report on alert messages recieved on a day. But i for processing around 4500 lines (alerts) the script is taking aorund 30 minutes to process.
Please help me to make it faster and improve the performace of the script. i would be very happy if this report gets generated within 5 mins - if possible
Below is my shell script
---------- Post updated at 10:00 AM ---------- Previous update was at 09:55 AM ----------
The alert messages (4000 lines) will be like below The report i want looks like below
Last edited by apsprabhu; 04-09-2010 at 02:38 AM..
Hi ,
i'm searching for files over many Aix servers with rsh command using this request :
find /dir1 -name '*.' -exec ls {} \;
and then count them with "wc"
but i would improve this search because it's too long and replace directly find with ls command but "ls *. " doesn't work.
and... (3 Replies)
Hi All,
I am using grep command to find string "abc" in one file .
content of file is
***********
abc = xyz
def= lmn
************
i have given the below mentioned command to redirect the output to tmp file
grep abc file | sort -u | awk '{print #3}' > out_file
Then i am searching... (2 Replies)
hi someone tell me which ways i can improve disk I/O and system process performance.kindly refer some commands so i can do it on my test machine.thanks, Mazhar (2 Replies)
I have a data file of 2 gig
I need to do all these, but its taking hours, any where i can improve performance, thanks a lot
#!/usr/bin/ksh
echo TIMESTAMP="$(date +'_%y-%m-%d.%H-%M-%S')"
function showHelp {
cat << EOF >&2
syntax extreme.sh FILENAME
Specify filename to parse
EOF... (3 Replies)
Hi All,
I have written a script as follows which is taking lot of time in executing/searching only 3500 records taken as input from one file in log file of 12 GB Approximately.
Working of script is read the csv file as an input having 2 arguments which are transaction_id,mobile_number and search... (6 Replies)
Hi,
I have around one lakh records. I have used XML for the creation of the data.
I have used these 2 Perl modules.
use XML::DOM;
use XML::LibXML;
The data will loo like this and most it is textual entries.
<eid>19000</eid>
<einfo>This is the ..........</einfo>
......... (3 Replies)
Hi ,
i wrote a script to convert dates to the formate i want .it works fine but the conversion is tkaing lot of time . Can some one help me tweek this script
#!/bin/bash
file=$1
ofile=$2
cp $file $ofile
mydates=$(grep -Po '+/+/+' $ofile) # gets 8/1/13
mydates=$(echo "$mydates" | sort |... (5 Replies)
Hello,
Attached is my very simple C++ code to remove any substrings (DNA sequence) of each other, i.e. any redundant sequence is removed to get unique sequences. Similar to sort | uniq command except there is reverse-complementary for DNA sequence. The program runs well with small dataset, but... (11 Replies)
Hello,
For several of our scripts we are using awk to search patterns in files with data from other files. This works almost perfectly except that it takes ages to run on larger files. I am wondering if there is a way to speed up this process or have something else that is quicker with the... (15 Replies)
Discussion started by: SDohmen
15 Replies
LEARN ABOUT DEBIAN
pegasus-dax-validator
PEGASUS-DAX-VALIDA(1)PEGASUS-DAX-VALIDA(1)NAME
pegasus-dax-validator - determines if a given DAX file is valid.
SYNOPSIS
pegasus-dax-validator daxfile [verbose]
DESCRIPTION
The pegasus-dax-validator is a simple application that determines, if a given DAX file is valid XML. For this, it parses the file with as
many XML validity checks that the Apache Xerces XML parser framework supports.
OPTIONS
daxfile
The location of the file containing the DAX.
verbose
If any kind of second argument was specified, not limited to the string verbose, the verbose output mode is switched on.
RETURN VALUE
If the DAX was parsed successfully, or only warning's were issued, the exit code is 0. Any 'error or fatal error will result in an exit
code of 1.
Additionally, a summary statistics with counts of warnings, errors, and fatal errors will be displayed.
EXAMPLE
The following shows the parsing of a DAX file that uses the wrong kind of value for certain enumerations. The output shows the errors with
the respective line number and column number of the input DAX file, so that one can find and fix them more easily. (The lines in the
example were broken to fit the manpage format.)
$ pegasus-dax-validator bd.dax
ERROR in line 14, col 110: cvc-enumeration-valid: Value 'i386' is not
facet-valid with respect to enumeration '[x86, x86_64, ppc, ppc_64,
ia64, sparcv7, sparcv9, amd64]'. It must be a value from the
enumeration.
ERROR in line 14, col 110: cvc-attribute.3: The value 'i386' of
attribute 'arch' on element 'executable' is not valid with respect to
its type, 'ArchitectureType'.
ERROR in line 14, col 110: cvc-enumeration-valid: Value 'darwin' is
not facet-valid with respect to enumeration '[aix, sunos, linux, macosx,
windows]'. It must be a value from the enumeration.
ERROR in line 14, col 110: cvc-attribute.3: The value 'darwin' of
attribute 'os' on element 'executable' is not valid with respect to
its type, 'OSType'.
0 warnings, 4 errors, and 0 fatal errors detected.
SEE ALSO
Apache Xerces-J http://xerces.apache.org/xerces2-j/
AUTHORS
Jens-S. Vockler <voeckler at isi dot edu>
Pegasus Team http://pegasus.isi.edu/
05/24/2012 PEGASUS-DAX-VALIDA(1)