Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7726565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:14:50+00:00 2026-06-01T05:14:50+00:00

I have a small program that I’m trying to create to get ip addresses

  • 0

I have a small program that I’m trying to create to get ip addresses from an sqlite db and run the whois command on and write it to a data file.

import sqlite3
import os
v_path = os.path.abspath('') 
v_db = os.path.abspath("../")+"/logsql.sqlite"
v_ip = v_path+"/Whois.Resources/Who.IP.txt"
print v_ip
try:
    f1 = open(v_db)
    f2 = open(v_ip, "w")
    conn = sqlite3.connect(v_db)
    c = conn.cursor()
    c.execute("select remote_host from connections group by remote_host;")
    for row in c:
        print row
        #p.write("sts")
    c.close()   
    f1.close()
    f2.close()
except IOError as e:
   print 'Oh dear, shit just hit the fan.'

The output looks like this

bash$ python WhoIs.Program.py 
/Users/frankwiebenga/Documents/Spring 2012/Malware/WhoIs/Whois.Resources/Who.IP.txt
Oh dear, shit just hit the fan.

The issue is opening v_ip, the v_db opens fine. The file is there

bash$ pwd
/Users/frankwiebenga/Documents/Spring 2012/Malware/WhoIs/WhoIs.Resources
bash$ ls
Who.IP.txt
frank-wiebengas-macbook-pro:WhoIs.Resources frankwiebenga$

The directory structure is

logsql WhoIs{directory}
____________
WhoIs.Program.py WhoIs.Resources{directory}
____________
Who.IP.txt
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:14:52+00:00Added an answer on June 1, 2026 at 5:14 am

    Whois.Resources should be WhoIs.Resources. Linux is case sensitive.

    P.S. Thanks for including enough information in your question to figure this out. It’s rare for that to happen.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small IOS program and that get a time from a database
I have a small program that's supposed to sample some value from a device
I have a small command line program that uses the Team System API. When
I have a small question. Is it possible to create a small program that
I have a small C++ program that parses a file given as a command
I have a small program that which is confusing me. I am trying using
I have a small program that is suppose to count lexemes. What I get
I have a small C program that I wish to port from Linux to
I have a small program that sends and receives data from server and client
I have a small program that is trying to wrap an NHibernate insert into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.