Hi,
Does anyone know any good source of information to do the followingl;
I wish to write a Java frount end to manage users in LDAP Directory Server, I know there is software availible to achieve this - however I need to write my own application - any ideas on how to start this?
Hi,
Just one more question;
for(ind in termsARR){
system("sed -n 'indp' log")
}
How can I do this? I'm trying to get the number from the array & assigning it to ind & using Vlads command from there.
Hi,
at the moment I am writing some code; such as follows....
How can I get the following code to process until I find every line containing Test, at the moment the prog. is working sequentially - ie from top to bottow, which I don't want...
{
i=1
while( $0 ~ /TEST/){
print FNR >...
Thanks Marsd,
I'll play with it a bit.. one question - what is the syntax of the
END
{
'tail -<start_number> <filename> | head -<end_number-start_number>'
}
i've tried;
system("tail etc...")
but script hangs...
Yeah, perhaps it was a little incomprehensible.... sorry, I'll try again... I'm going some testing, and I wish to find out the best way to match the following line line containing the following strings -
/Error/ and /Invalid/ - as this is the easiest thing to match. When I have found these...
I have two lists of numbers matching the line values I wish to match using awk.... How do I write a scritp to start at the values given by the list containing - ( These are the Values I need to match )
5103
1485
5663
4260
Now I need to decrement backwards until I hit the the closest value...
I have two lists of numbers matching the line values I wish to compute.... How do I write a scritp to start at the values given by the list containing
5103
1485
5663
4260
and decrement backwards until I hit the first value contained by the value in the list;
5087
2691
5691
4234
5256
4398...
Hi all,
is the following syntax correct in awk - I wish to test if the line $0 matches the test /invalid credentials/ but does not match the variable /test/?
if($0 ~ /Invalid credentials/ !~ /test/){
print $0
}
Lambros.
Hi,
I am doing the following;
split($1,t,":") - using split function to add time to arroy
j = t[4]+01 - adding 1 second to the original time
newtime[n]=t[2]":"t[3]":"j - the new time is set to variable newtime
timeARR[a++]=newtime - this does not work, I...
Hi,
I have written an awk script to go through a log file, pick out items such as invalid user ID etc based on time stamp - it works to a point, however if there is a difference in 1 second in time between the user authenticating and trying to authenticate it throws out the script.
I can get...
Thanks meadandale,
In that case what is the best method to publish a log file over the web? I'd like to use JSP / servlets, as I don't just want to serve the plain log file.....
req x2/f0909 > 111
Hi,
Does anyone know the command I can use to get this value above? I've tried;
if ( $0 ~ /req[ <tab>]*>[ <tab>]*208/ ){
but I think it doesn't get it out because of the characters, is there some wild card I can use in awk for this, I need a wild card as the x2/f0909 is a...
Hi CaKiwi,
I've also tried this & it works to a point, however if I elaborate on it & do
if ($0 ~ reg[i] && /78/)
it doesn't return anything, even thought this works on the command line ( when I insert the values returned by print reg... do you know why this is?
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.