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!
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...
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
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
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...
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...
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...
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...
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...
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...
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.
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...
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...
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
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...
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 "cn=administrator, ou=members, o=companynet" -w password -u cn=abc123 -x...
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...
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 "not" 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...
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...
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?
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.