I have a setup of three machines.
Machine A runs a vncserver and an ssh server,
Machine B runs a vncviewer,
Machine C runs an ssh client.
The vncviewer on B connects to the vnc server on A.
The ssh client on C connects to the ssh server on A.
Is it possible that from the ssh session in C I spawn a process ( say xclock) on A so that the process shows up in the vncviewer on B's screen. Basically I am looking for the value to set DISPLAY variable to so that this can be achieved.
PS : Please reword the title of my question if you find that it doesn't appropriately describe my question