zaheer, i'll outline the general funda of how this would be done.
The main problem here is that the processes are on different hosts.
So basically this boils down to 2 problems
1. sending a message from one host to another. you would want to use one of the protocols to do this TCP / IP / Telnet etc.
2. The process should pick up the message. this would be donw by listening to a socket.
wish i could give you more details, but i guess this will help you in the approach