Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. nrich239

    Glibc Error

    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
  2. nrich239

    Glibc Error

    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
  3. nrich239

    Simple Question

    Does anyone know of any RAM checker programs? The only one I know of is memtest32 Thanks, Nate
  4. nrich239

    Bit of a tricky one

    Ahhh I had not thought of that one Thanks
  5. nrich239

    Bit of a tricky one

    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...
  6. nrich239

    Very simple

    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
  7. nrich239

    Very simple

    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
  8. nrich239

    using grep

    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
  9. nrich239

    using grep

    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...
  10. nrich239

    using grep

    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 " " >>...
  11. nrich239

    using grep

    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
  12. nrich239

    using grep

    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 } =...
  13. nrich239

    using grep

    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...
  14. nrich239

    Database in Perl

    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
  15. nrich239

    using grep for matching arrays

    Is there anyway to have the results that comm displays saved to a file?
  16. nrich239

    using grep for matching arrays

    Thanks, I didn't know that existed. That makes this so much easier
  17. nrich239

    using grep for matching arrays

    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...
  18. nrich239

    grep an array for an element

    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...
  19. nrich239

    Simple question about while

    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...
  20. nrich239

    Number matching

    Thank you to both, you've saved me multiple hours of frustration. Thanks again, Nate

Part and Inventory Search

Back
Top