Results 1 to 6 of 6

Thread: talking execs...

  1. #1
    Join Date
    Mar 2008
    Posts
    15
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default talking execs...

    Hello
    I plan to develop my project using QT but I have some questions in my mind. I want to clarify...
    In the project there will be 3 seperate executables and these executables will talk each other.I mean, one of them will do its job and inform the other one and it will go on like that. How can I achive this kind of thing using QT? I looked at QProcess class but it doesn't provide this kine of faccility as I see...perhaps I'm wrong,i'm not sure...
    May somebody put light to my way please?

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: talking execs...

    You can use Qt D-Bus but its unix only. The otherway by which you can do this is, make your exec1 write the information the you want to pass on to exec2 or exec3 into a file and then using QProcess execute the exec2 or exec3. Then exec2 or exec3 can read from that file.

  3. #3
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: talking execs...

    if the communication between the executables is one way then ,store the output of the first executable as a string and pass it to the second executable as the command line argument using QProcess.

  4. #4
    Join Date
    Mar 2008
    Posts
    15
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: talking execs...

    think that all the executables will be running...they will not call each other,they will communicate...

  5. #5
    Join Date
    Oct 2007
    Location
    Grenoble, France
    Posts
    80
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: talking execs...

    You can make them client-server (TCP or UDP) like some unix apps.
    You have to run a level 3 diagnostic.

    Ashes to ashes, Qt to Qt ( wysota )

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: talking execs...

    I'd like to suggest using QLocalSocket and QLocalServer.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.