all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: How to communicate with a running external process with
@ 2013-07-22 15:27 Buchs, Kevin J.
  2013-07-23  7:59 ` Thorsten Jolitz
       [not found] ` <mailman.1619.1374566396.12400.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Buchs, Kevin J. @ 2013-07-22 15:27 UTC (permalink / raw
  To: 'help-gnu-emacs@gnu.org'

Thorsten,

Your questions and responses suggest that maybe you are not grasping some basics of interprocess communication. You have some other program running in another process, not started by emacs and you want to communicate with it. A critical factor in such communication will be knowing how that other program is set up to communicate. Some programs are developed to have standard communication ports and protocols, like HTTP. Unix/Linux supports signals (kill) which a program may be set up accept and respond appropriately toward. A program may support TCP/IP or Unix sockets. A program may read and write files. You might have shared memory space or semaphores. There are dozens of different mechanisms. Emacs supports some of them out of the box. It might be that you can extend emacs by writing code to support other mechanisms. Another alternative is for emacs to communicate with a subprocess it creates running a program designed to communicate with the other process. However, what does the other program support? This is the question you need to answer. We can't make up an answer for you.

As an analogy, if you and I wish to speak, we may need to speak face to face. If we don't speak the same language we have trouble. Maybe we can talk on the telephone, but if you don't have a telephone, we are not going to speak that way. Communication takes appropriate coordination for the sender and receiver. 

Kevin Buchs | Senior Engineer | SPPDG | 507-538-5459 | buchs.kevin@mayo.edu
Mayo Clinic | 200 First Street SW | Rochester, MN 55905 | http://www.mayo.edu

-----Original Message-----
> How would you communicate with the external process, from any other
> program?

I don't know, and I interpreted the responses so far to my post as "it
is impossible, only 'kill' can access the running external process with
given PID" - but kill sends signals, no command-strings or so. 

So when suggestions arrive like 'use plain socket communication' I'm
still curious if there is a 'magic hack' to achieve that, given that the
external process is NO Emacs subprocess and already running.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-07-24  6:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22 15:27 How to communicate with a running external process with Buchs, Kevin J.
2013-07-23  7:59 ` Thorsten Jolitz
2013-07-23  8:22   ` Yuri Khan
2013-07-23  9:30     ` Thorsten Jolitz
2013-07-23 19:09   ` Pascal J. Bourguignon
2013-07-23 20:13     ` Thorsten Jolitz
2013-07-23 23:06       ` Pascal J. Bourguignon
2013-07-24  6:34         ` Thorsten Jolitz
     [not found]   ` <mailman.1659.1374606578.12400.help-gnu-emacs@gnu.org>
2013-07-23 19:12     ` Pascal J. Bourguignon
2013-07-23 20:15       ` Thorsten Jolitz
     [not found] ` <mailman.1619.1374566396.12400.help-gnu-emacs@gnu.org>
2013-07-23 14:43   ` Barry Margolin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.