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 Chriss Miller 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: *

  • Users: FinnMan
  • Content: Threads
  • Order by date
  1. FinnMan

    Parsing Weblogs for ISP info

    I'm looking for a quick way to parse access logs and identify originating ISP based on the IP address. I can script something up that does a whois query but these logs are rather large and that seems a little 'dirty'. Anybody by any chance know a more efficient way? Thx!
  2. FinnMan

    Insert LF or CR with SED

    I have a single line file that I'm trying to insert some line breaks into. I seem to be failing miserably as I continue to end up with a single line. In short: sed -e 's/%,/%CR/g' file I'm wanting to find each occurence of "%," and replace it with "%" and then a new line. In exchange for...
  3. FinnMan

    Sed syntax

    sed -e '/word/q' filename The above deletes everything after the line containing 'word'. How do I change it so that it includes deleting the line containing word? Thx, ./FM
  4. FinnMan

    Parsing HTML Tables

    I'm working with some web pages that contain a lot of tables. Apart from writing some extensive regex, does anybody know of any tools or scripts out there for use with parsing tables from web pages. Perl has a module for it but it's not really up my alley so to speak. Thx, FM
  5. FinnMan

    PREG_MATCH

    I have a variable $result (for sake of discussion) that contains a bunch of html. I'm trying to grep out a particular section to assign to a another variable. My HTML likes the following: *************************** <br>TEXT: data<br><br></body> *************************** I simply want to put...
  6. FinnMan

    PHP/Curl Authentication

    I have to ask for help before I go insane :-P ********************************************* I have the following curl script (works great) which I'm trying to convert to PHP/Curl. Any pointers on what I'm doing wrong would be great. curl -s -u username:password -k -F userid=username...
  7. FinnMan

    Passing Variables To Expect

    I have simple expect script that I want to pass a variable to via a web form. Any suggestions on how this can be done? One method I've seen is to dynamically generate the expect by using a simple echo from bash and then executing the expect script. Is there a way to pass the variable to expect...
  8. FinnMan

    Working With Multiple Arrays

    I have 3 arrays I have created from 3 different files. One file is a list of text and the other two are numeric in nature. I need to do a math equation all the way down the two numeric arrays (i.e., compare A[1] with B[1] and A[2] with B[2],etc..) and then dump the output to a file with the...
  9. FinnMan

    Simple Bash Array

    I'm going batty with this seemingly simple array. What I'm trying to do is cat a file and do some ldap lookups. What I've done is this: ************************** wUSERS1=`cat usersample | awk -F "/" '{print $5}'\n`; for h in "${wUSERS1[@]}" do echo "$h" done...
  10. FinnMan

    Passing Variables to system()

    I'm trying to do the following with much unsuccess: ************************ #include <iostream> #include <cstdlib> using namespace std; string user; main() { cin >> user; system("curl -d userid="+user+"&press=submit https://url"); } *********************** I've tried every combo of variable...
  11. FinnMan

    Good Books References?

    Can anyone recommend some good Books or Online Sources for utilzing internet functions within C++? I've come across some 'high-level' materials but am looking for more fundamental approaches.
  12. FinnMan

    Compiler Question

    Can some explain to me (C++ newbie) why the following code compiles and runs fine using g++ on linux but always returns a value of 0 when compiled with DevShed on an XP box? I'm assuming it has to do with the compiler and not the platform, am I correct? **************************** // Include...
  13. FinnMan

    Malicious Script

    I just recently recieved an obviously malicious vb script in my email. Fortunately I run linux so it hasn't impacted me. Upon examination, I'm not too sure what the script is doing. It appears that the script writes itself and then continues to append to itself. Could someone confirm this for...
  14. FinnMan

    Keyboard Input

    How would I go about inputing characters from a script such as CRTL + SHIFT + N etc... ? Any link refs would be wonderful too. I've looked into expect but I'm not really concerned with the terminal response at this point so I don't think that's what I need. Thx, FM
  15. FinnMan

    Slowing down perl for a response

    I have a perl script I'm writing to execute a system script that querys a LDAP server. I make a system call to the script ldapsearch and pass the password to it and then open a text file as an array that contains a list of account names to be queried. When I run the script it comes back with...
  16. FinnMan

    Encrypted Results

    I just installed openldap on my linux box to query our company's LDAP server and so far everything is functional with one problem. I can query the server (using the following syntax) ldapsearch -h dldapfe1 -D &quot;cn=administrator, ou=members, o=companynet&quot; -w password -u cn=abc123 -x...
  17. FinnMan

    Many-to-Many Relationships

    Greetings. I need a bit of advice from those who can help. I'm working on a database with some many-to-many relationships and the head is getting a bit clouded!! I think I have the structure down but my problem may be queries... In a nutshell, I'm working with three tables: Doctors, Hospitals...
  18. FinnMan

    Partial match in searching an Access DB

    Ok Gurus: I'm having a time of it trying to do a data return based on a partial match (i.e., searching for light will also return lightning, etc...) I am &quot;not&quot; using ADO. Just straight DAO jet on an Access database. Should I be using a SQL query? So far I've been unlucky in finding...
  19. FinnMan

    Ok...this one is embarassing....

    I've got a rtBox bound to a DAO to display data. My rtBox has scroll bars so I can scroll down. Unfortunately, my scroll bars won't scroll. I can click in the box and page down ok but no scroll!! I'm going batty since I've been fighting this a few hrs now. Any suggestions on the property values...
  20. FinnMan

    Displaying entire column of data into text box

    Having a little trouble here.... :-( I'm trying to display an entire column of data from an access table into a text box. I can hit the first record and even jump between them but can't seem to populate the entire text box with the column of data. Any suggestions?

Part and Inventory Search

Back
Top