Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing information between two seperate programs

Tags:

c++

linux

ipc

I want to pass a value of an input variable in my program lets say#1 to another program #2 and i want #2 to print the data it got to screen, both are needed to be written in c++. The this will be on Linux.

like image 312
xzvkm Avatar asked Aug 04 '26 11:08

xzvkm


1 Answers

Depending on the platform there are a number of options available. What you are trying to do is typically called inter-process communication (IPC).

Some options include:

  • Sockets
  • Pipes
  • Queues
  • Shared Memory

What is easiest is probably dependent on the platform youa are using.

like image 125
Nic Strong Avatar answered Aug 07 '26 02:08

Nic Strong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!