I started playing with it more and more and found that a line of code to de-reference an array was being called before it should have been.
Thanks though
I'm running a program trying to get run JNI from C.
It compiles without error but during execution I get:
*** glibc detected *** double free or corruption (fasttop): 0xacc13d68 ***
Any ideas?
Let me know if more info is needed,
Nrich239
Here's a tricky one.
We have a list of servers that we test every week for vulnurabilities.
When these servers report back, their report is stored in a directory "/reports/<date>/<serverName>"
Now what I wanna do is take the total number of servers, and subtract the ones that reported back...
Sorry, I mis-worded that, what I meant to do was for it to show the duplicates.
I have 2 lists of server names we're testing and i think that we have the same server on both lists. What i need it to do is to pull out what shows up on both lists
I'm looking for a command to comapre two files and pull out the duplicates.
I used to know it and I haven't been able to think of it all morning
I've looked at comm, diff, and uniq and they're not it.
Any one know of this?
Thanks,
Nate
Thanks guys, you've been extremely helpful.
it's kinda sad that I can come here and get help faster than calling up the unix guys at work becuase they complicate things 20 times more than they need to be.
Thanks again,
Nate
I tried using:
nawk -f $ANS -v pat='security violation by user' 'tolower($0) ~ pat { printf; getline;getline; printf }' >> "results"
but I get the error
nawk: syntax error at source line 1
context is
>>> ** <<< ****************************************************
nawk: bailing out at...
The name of the file "G0003V00" (those are zero's)
#!/bin/ksh
##Script to find all instances of where the user tried to log on too many times
print -n 'Enter the file to scan: '
read ANS
print "Passwords not matched" > "results"
grep -i 'password not matched' $ANS >> "results"
print " " >>...
Now the only question is how does nawk know the current line?
I don't have any loops running.
Currently when I run the program with the nawk command, it sits idle
let me see if i've got this right
nawk -v pat='security violation by user' 'tolower($0) ~ pat { print; getline;getline; print }' myReportFile
nawk -v = runs it
pat = the pattern to search for
"tolower($0) = ?? dunno except that $0 shows the whole line
~ pat {print; getline;getline; print } =...
I'm running a program to go through an automatically generated report and I want it to pull out certain lines.
Right now I have the command
grep -i 'security violation by user'
but I need the 2 lines below it as well so I can see what user caused the violation.
There will always be 2 lines...
I looked at the FAQ and none of the tutorials had anything about using a database with perl.
Anyone got any links to a tutorial or can give me an ovierwiev of how to use, create, and edit databases with perl?
Thanks,
Nate
I need to compare 2 Error logs and display only the new errors.
Basically I need it to go through and anything that's in file A but not in file B needs to be shown.
I got this from someone else but they used it to match numbers and it doesn't work as well for text.
@out is initialized to the...
I have a similiar problem.
I'm trying to compare 2 files and only pull out the lines in file A that don't show up in file B.
I tried using dchoulette's method but I'm getting a syntax error.
# Fill @out with the values of @later
@out = @lines;
# For each value $early in @early
foreach $word...
This kinda goes along with my other post but I want to do a while loop that goes until ti finds the end date
I know in an if statement I can use =~ to see if it contains a certain piece.
What I want to know is if there is a doesn't contain, something like (!=~)??
If not, what else could I use...
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.