Thread: Unix API ?

  1. #1

    Unix API ?

    I have no clue where to start.
    Im familiar w. C/C++

    How would I go about this.
    Using C or C++ to interact w. other windows/ programs.


    If i wanted to create an irc bot.
    Have a bot sit online in a chat room running *****X or xchat or any irc client. View each line sent to chat by others, and then responded accordingly.
    How would I go about doing that?

    I believe in Windows I would use the Win32 api calls such as FindWindowEx etc etc.
    What about in Unix ?

    Thank you

  2. #2
    The Artful Lurker Deckard's Avatar
    Join Date
    Jan 2002
    If you are interested in writing an IRC bot, I suggest downloading the Eggdrop IRC bot and reviewing the source code (try searching for it at

    Jason Deckard

  3. #3
    My question was in general.

    Using my program to deal w. other programs i/o.

  4. #4
    Registered User
    Join Date
    Aug 2001
    You're going to have to read up on fork and exec (doing a man on either one will tell you something of what you need to know), and then you'll need to study interprocess communication.

    Yes, it is do-able, but it can also be a bit tricky. Advanced Programming in the Unix Environment (Stevens) is probably one of the most detailed and in-depth guides you can find on these topics. Beginning Linux Programming (Wrox Press) also talks about it a little, if you're looking for a book. Ageneral lesson is a little too complicated to get in to here though.


  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    This has some good stuff on unix programming

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 10:54 AM
  2. Setting up a Unix box
    By @nthony in forum Tech Board
    Replies: 6
    Last Post: 07-22-2007, 10:22 PM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  4. pthread api vs win32 thread api
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2001, 08:55 AM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM