I mean to link them and transfer some attribute. for example first program send array and second program get , then send another array.
A:
The term you are looking for is probably IPC: Inter Process Communication.
There are tons of ways to do this. If you need your two programs to talk together (not just one direction), you might want find it easiest to use some sort of networking library.
Daren Thomas
2010-09-21 11:37:29
except networking library , what is the best way?
Amin
2010-09-21 11:43:54
This depends on a lot of factors. If this is just quick and dirty, you could look into memory mapped files (but this might be POSIX only).
Daren Thomas
2010-09-21 12:05:01
This chapter from The Art Of Unix Programming might be of interest: http://www.faqs.org/docs/artu/ch07s02.html (Taxonomy of Unix IPC Methods)
Daren Thomas
2010-09-21 12:07:06
Thanks for link
Amin
2010-09-21 12:11:47
You're welcome, Amin. BTW: Read the whole book when you get time. It is really worth it!
Daren Thomas
2010-09-21 12:22:27