whois search from a c program

This is a discussion on whois search from a c program within the Linux Programming forums, part of the Platform Specific Boards category; I've looked, and performed a search on this site, but I cannot find any references to how to perform a ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    13

    Question whois search from a c program

    I've looked, and performed a search on this site, but I cannot find any references to how to perform a whois lookup from a c program.

    I'm new to C. I want to write a little cgi program that performs a whois lookup for a name entered into a form.

    I know I can just type "whois domainname.com" from the command line in linux and get the result. How do I do that, and trap those results in a c program.

    Please help.

    Tim

  2. #2
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    use a pipe
    hello, internet!

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    13
    thank you - but I'm REALLY new - those examples don't help much. Can you give me a specific piece of code?

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    13

    Thumbs up

    Thank you - that helps!

  5. #5
    moi
    moi is offline
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by moi
    use a pipe
    Originally posted by Salem
    Or even popen()
    uhhh.....
    hello, internet!

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    pipe(). Salem was just clarifying.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. binary search program
    By saszew in forum C Programming
    Replies: 2
    Last Post: 11-14-2008, 12:04 AM
  2. An interesting challenge --> A word search program
    By desipunjabi in forum C Programming
    Replies: 5
    Last Post: 11-12-2005, 02:30 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Simple search program
    By colinuk in forum C Programming
    Replies: 6
    Last Post: 12-18-2004, 12:58 AM
  5. search array program
    By z.tron in forum C++ Programming
    Replies: 3
    Last Post: 11-15-2002, 06:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21