in reply to Communication between two processes

This seems like more of a question about Unix shells than Perl. Still, I'm enough of a Unix geek to enjoy these sorts of problems. What is it, exactly, that you wish to do? This sounds eerily like a really warped project I had years ago that required coprocesses. However, I really hate recommending that. Maybe you'd be better off having the shell/tool be a child process, which listens for commands from the Tcl process.

Just a thought.

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

  • Comment on Re: Communication between two processes

Replies are listed 'Best First'.
Re^2: Communication between two processes
by SmilingBuddha (Acolyte) on Jan 05, 2005 at 10:54 UTC
    This indeed is more on unix but will be impemented in perl. To make the problem simple:
    Let us assume we have two perl scripts running (and in some kind of wait mode). These perl scripts are independednt and do not have any knowledge of each other. Perl script 1 should now establish a communication with perl script 2 to which perl script 2 will do some task and return something to perl script 1.
    I will extend the same logic to unix shells later. The question here is... how to make the above possible?
    ---
    Do unto others as you would expect others to do unto you - The Golden rule of Life!