Is it possible to send a command to a running copy of ImageJ via a socket?
Posted by
Michael P Ellis on
Oct 19, 2020; 12:36pm
URL: http://imagej.273.s1.nabble.com/Is-it-possible-to-send-a-command-to-a-running-copy-of-ImageJ-via-a-socket-tp5024089.html
Hello all.
Is it possible to send a command to a running copy of ImageJ via a socket?
The sort of thing I had in mind could be illustrated with the unix 'nc' command as follows:
$ echo 'open /path/to/file/Meta1.tif' | nc localhost 57294
I can see that ImageJ can use Socket ports to prevent multiple instances of ImageJ from running but I cannot see how to explicitly send a command via a Socket.
My final use case is from my own standalone java application to be able to request an already running copy of ImageJ open an image file.
If this is not possible is there already an ImageJ plugin that already written that does the job?
As ever thanks in advance for any help.
Michael Ellis
Digital Scientific UK Ltd
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html