Thread: controlling one program from another

  1. #1
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300

    Question controlling one program from another

    I have two (GUI context) apps that perform seperate functions and get used independently, but also relate -- or i'd like them to. Basically, one would be sending user level commands to the other while both are running. Where should I start my investigation? I only need a few options and short lines of text exchanged, so should I just use signals and a fifo? Or can I use sockets (which I've never done before...)
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    67
    You could use sockets, I believe.
    You could also use SendMessage.

    I can't think of any other right now. :-/

  3. #3
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Quote Originally Posted by kpreston View Post
    You could use sockets, I believe.
    You could also use SendMessage.

    I can't think of any other right now. :-/
    There is also possibility of named-pipes or memory mapped file...
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  3. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  4. Controlling an unknown program
    By bigdan43 in forum C++ Programming
    Replies: 3
    Last Post: 02-08-2005, 02:45 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM