Programming :: Pulling Contact Info For 400+ Domains
Jan 11, 2011
I'm doing this manually, as I'm at work, and if I spent 2 days trying to figure out a script to do this they'd maybe take it as me not working and instead messing around. However what I want to do is pull the:
Contact name, Company Name, Address, City, County, Postcode and email from the whois info for a list of about 400 domains we own.
I think I need some kind of combination of dig, sed and awk to pull the info, then filter out the parts I need, however I've never done anything like this before so I need some advice on where to start.
I'm not looking for a full bolown solution, I already have the list of domains so I think it will be something like:
Code:
for x in {list of domains}{
dig x;
somehow grab name, company name, address,
write to file in csv
}
Am I looking at this in the right way, can someone get me started? Is it sed/awk I need or is there another too.
I have had no problem setting up Evolution to send/recieve email from MSN but it doesnt not sycronize the calander or contacts which I find a must (as I use the calendar and contact info for all my business apointments/ contacts). Is there a way to setup Evolution to sycronize with MSN all contact y calendar info? subject as on the internet I only seem to find references to google (as well as in synaptic Package manager).
I would like to unzip a simple PHP code files, to have a online PHP contact / phone book. Simply, slow, and not database oriented over complicated setups into settings. I have a PHP / web provider (free), not apache. WITHOUT SQL (like before it may exists) something like this [URL]
I'm checking with a sniffer and there's activity going on between the client and the LDAP server... as a matter of fact, the sniffer shows that the search is producing one ldap item, however, php says it can't contact the ldap server (after it has bound and everything):
The script is working beautifully on another host with debian.
I am very new to Linux and am taking a class on Introduction to Linux, but I am not familiar with Command Script. Can anyone direct me to a place where I can find more info (for a two year old) on command script programming? I want to be able to understand what it all means.
how to work properly on the windows forms application in c++.
the thing is that i was able to produce in the windows forms application a web browser and I added a save button. So know I am able to navigate predeclared webpages such as [URL]and then I entered google's search box such as "spread of H1N1". and I surf a page such as [URL] I later save the page as text file on my computer.
I wanted to know how to organize the words in the text file ? i mean how can i just get the number of infected people in USA , number of infected in CANADA (if they exist) from all the text file and change it to a file with precise data.that is to eliminate the unneeded information such as the the characteristics and the useless ideas? and what if i also wanted to know the characteristics of the virus in a country+the number of infected?. How can i do it?
I want to implement a cross layer approach. I want to pass the network information such as delay from the MAC layer to Network layer. Can you tell me the way I am new to this. I am using linux (fedora). I think some system call will do the trick. Correct me if I am wrong. (I want to implement QoS matrices)
so i cannot install anything because update-info-dir file is missing from /var/lib/dpkg/info/ .. I've searched for the last day and a half for a way to fix this, but nothing. can't even update dpkg because of this. so how do I bypass or fix this so I can install stuff (this is a fresh install of ubuntu 10.04 lts Lucid Lynx).
I can't remember what it's called, but this feature of VC++ basically catalogs all the functions of a project, lets you right click on a function and go directly to it's declaration or definition, do not pass go, do not collect 200 dollars. it also gives you an info bubble of the variable types as you're typing a function's name.
this is a very convenient feature, and I'd like to use it with KDevelop, or really any full C++ IDE for linux. does such a thing exist?
I am developing an application whose executable is generated inside a certain folder hierarchy (say: /DevPath/MyProject/bin). My source code is located in a different branch of this hierarchy (say: /DevPath/MyProject/src). When my app crashes, its core files are stored in /DevPath/MyProject. I'm developing the app on a pc, but running it on a separate platform in which i can only execute it. Folder hierarchy is the same as above on both computers. Usually, when a new executable version is ready, we update both the executable and the source code on the target platform, transferring all the new /DevPath/MyProject folder on it. But sometimes it can really be a bother, so we update only the executable.
1)In the case we only update the executable, keeping an old source code version, and the app generates a core file, can i trust the backtrace produced by gdb in this case? I.e., does gdb need the latest source code files or it just needs the debugging information?
2) (More radical question ) Do i really need to keep the source code on the target platform for core dump analysis or i just need the executable?
I'm a linux newbie and scripting novice and I'm trying to pull auditing info and dump it into a file. I made some login changes so it would get audited but I don't want to have to sift through the log to see who the user was and what was done. This is what I have below here and I can't seem to get it to extract the info want using the event id. The "ausearch -a $10" from the script should get it from the 10th column but it's not working.If I can get this to work I would like to add additional aureport options.
I ran GDB on a program and am receiving following errors, Code: anisha@linux-uitj:~/junk> g++ -g jk.cpp anisha@linux-uitj:~/junk> gdb a.out GNU gdb (GDB) SUSE (6.8.91.20090930-2.4) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later [URL] This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-suse-linux". For bug reporting instructions, please see: [URL] ... Reading symbols from /home/anisha/junk/a.out...done. (gdb) b readline Breakpoint 1 at 0x400b90: file jk.cpp, line 19. (gdb) r Starting program: /home/anisha/junk/a.out Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2 Try: zypper install -C "debuginfo(build-id)=591af1afa33f255704fb6a60859b93d00e205302" Missing separate debuginfo for /usr/lib64/libstdc++.so.6 Try: zypper install -C "debuginfo(build-id)=62220ad5c8941afb5d332c0c47d32f8beec8ac50" Missing separate debuginfo for /lib64/libm.so.6 Try: zypper install -C "debuginfo(build-id)=57fc1891d8d9f419fb8c7fc06a8285563b53a47e" Missing separate debuginfo for /lib64/libgcc_s.so.1 Try: zypper install -C "debuginfo(build-id)=0206e11fa8ca0db0633073adcbf1349a7871e1dc" Missing separate debuginfo for /lib64/libc.so.6 Try: zypper install -C "debuginfo(build-id)=c5a3dfd66bf61fcdec9bc22153b2fbd0d6697960" can't open input file (null) Program exited with code 01. (gdb)
I retooled my other script (thanks to those who helped) to work for resizing images for a netbook with 1024x600. Thanks to the ImageMagick website for help with the syntax. Here's what worked for me:
Code:
#!/bin/bash for SRCFILE in /home/robert/Pictures/*/*/*/*/*/*/* do RELPATH=`echo $SRCFILE | sed -e 's//home/robert/Pictures//'` DESTDIR="/home/robert/tmp/portable/${RELPATH%/*}"
[code]....
I figure anyone with a netbook is going to put a lower size/quality on their netbook and then keep the originals (music and pictures) on a different machine or an external hard drive.
Ive read a few books and a lot of tutorials on C but can't find this topic explained in a deliberate way.I can find bits and pieces but nothing thorough.
(bare with me as I am sort of new with scripting) I am trying to figure out how to run a script that does a basic chkconfig and to get only those services that are running, but changing the color of "on" to red in my output file. Here is what I am working with so far:
*I had to substitute a "-" and <colon_symbol> for ":" in front of the on's, because the forum thought they were smiley faces (i.e. n) how to make the "on" to be red while the rest of everything remains in black text. I have been trying to read up on sed and awk, but it is still pretty much a mystery to me right now. There will be other things in the output file that I wouldn't want a rogue "on" to be in red, so just the instances of "on" in that one chkconfig return.
I have another distro on my puter which has packages install on /opt which is on its own partition. i'm wondering how i can pull those packages into fedora.
I'll start off by saying that I've used Ubuntu for a while now and I've installed it on quite a few machines. This problem is really perplexing. I've got a machine that I wiped (hand built) that's had every version of Ubuntu on it since 8.10 - installed with no problem. The previous incarnation had Ubuntu Studio 10.04.
So I've got a fresh clean HDD. I download (via torrent) the standard 10.10 x64 disk. I boot from the CD and it just hangs at the ISOLINUX bootloader message. That pops up and the CD drive just spins down and nothing happens after that. So I do an MD5 sum on the iso checks out fine. I try the Alternate install CD, same problem. MD5 sum checks out fine on that too. I put the same failing CD in my laptop and it boots straight to the Install Menu.
So I grab a Fedora 13 and a CentOS ISO and burn both of those to CD. In this machine, both of those CDs boot absolutely fine and go straight to the live CD desktop. This PC has 2 optical drives, a SATA bluray drive and a PATA dvdrw drive. I get the same behavior on both drives. I've updated the BIOS on the motherboard (ASUS). I've tried to hit escape and hold down both shift keys while the thing is booting and neither have any effect.
The only thing I haven't tried yet is to burn another 10.04 CD to see if that works. Is this karma for last week when I heard that Katy Perry song on the radio and I didn't change the station right away? Has anyone experienced anything like this?
I'm getting a lot of stuff like this in ~/.cache/desktop-couch/log/desktop-couch-replication.log (below). Can someone tell me what's up with this??
(Also, an unrelated question, I have some bookmarks that are "read only". They are produced by a firefox extension that saves some information in the unsorted bookmarks. I have set the folder to r/w, but am wondering what u1 would do if I had not - both when pulling the bookmarks up to the server and when pushing them back down.) code...
I was having a similar issue with my wireless connection with S13.1-64 as this thread. My lappie uses the Intel Wifi Link 5100 AGN and had a problem pulling an IP from public wireless, however, I resolved that by setting the channel within the /etc/rc.d/rc.inet1.conf to the strongest antenna. However, now my problem is just maintaining the connection once it is established, either by time or heavy use the connection will drop, and I will typically have to restart the rc.inet1 script to get my access back again. According to the init script at start-up dhcpcd is forked, but apparently it doesn't do anything. If anyone has any ideas, I am all ears.
I have tried using likewise but I came across this yesterday. When you install Likewise only on a Linux, Unix, or Mac computer and not on Active Directory, you cannot associate a Likewise cell with an organizational unit, and thus you have no way to define a home directory shell in Active Directory for users who log on the computer with their domain credentials. I am trying to pull attributes from acitve directory.. namely the homeDirectory
I've recently swapped from Windows 7 to Ubuntu Lucid Lynx and I haven't looked back - except for the fact that moving from Photoshop to GIMP is difficult. I digress.
Suspend works nicely (what a blessing ) but Hibernate doesn't.
Ubuntu 10.04 is installed on a 500GB Seagate External hard drive plugged into a USB port on my motherboard. My BIOS is set to boot off of it automatically (boot order). Windows 7 is installed on my 160GB () internal drive.
The problem is not when I put it into Hibernate, it's when I pull it out of hibernate. When I do my computer tries to unhibernate into Windows!
My hardware ($300 laptop from Walmart haha) - click here for more info on HP's site if you want
Model: Compaq Presario CQ60-419-wm Video Card: Nvidia GeForce 8200M G Processor: AMD Sempron () 2.1 GhZ RAM: 3GB OS it was shipped with: Vista Basic ()
I have just setup evolution to pull in my exchange emails using MAPI. All seems to be well, except that it isn't pulling down my calendar or tasks. I understood that it was supposed to automatically do this, is this correct?We are using exchange 2005 I believe, so wonder if this is specifically the issue.
I would like to write a script that pulls the last line of data out of a txt file and then saves it to another txt file. The txt file that I am looking at resides here. [URL]
I know I can grab that file using wget. I've done a little scripting but nothing major.
I am wondering why I used to pull a much faster download and upload (approx 20 down 3 up). Now I only get 2 down and barely 1 up). I am not sure why this happened. Any ways to check on this? Just this one, dell d505 running suse 11.2. All other WiFi computers are pulling bandwidth as expected.
I'm having a bit of an issue with Lucid installed via Wubi. I stuck the OS on its own partition (30 GB in size), and don't store any large files in the Ubuntu file system (when I download something large I move it to another hard drive.) I don't have anything wacky or esoteric installed on my system.
I've been consistently having a problem where, after a few hours or a few days of being booted up, Ubuntu warns me that my available HD space is dangerously small. The amount of available HD space Ubuntu sees then shrinks from a few GB to nothing within a few minutes, and the only way I can seem to solve this is to reboot. Taking a closer look at what's happening, my Home folder balloons in size until there's no more writable space recognized. But there are no files being created or added to, so it looks like there's a bug of some sort. This SEEMS to be correlated with watching videos (or maybe it's the pulling of large files from a mounted directory into RAM? My videos are all on another HD, as mentioned before). I can generally go a few days without getting the "low space" message, but I can't seem to make it through a full 2-hour movie without getting the error.