Connecting to a remote Photon session

Suppose you need to look at a Photon application running on some QNX machine other than the one with the modem you're connecting to. Not a problem. You can use the -n option to specify the full QNX pathname of any Photon session on that remote QNX network.

To interact with a Photon session on another node's console:
  1. Connnect to the remote machine.
    • For a QNX 4 target, open a terminal and enter phindows.exe -n//node_number/dev/photon
    • For a QNX Neutrino target, enter phindows.exe -n/net/node_name/dev/photon
  2. After connecting to the QNX network,(initially logged into the first node), start:
    • On QNX 4, /usr/photon/bin/phrelay
    • On QNX Neutrino, /usr/bin/phrelay -x

The phrelay program recognizes that you really want to be connected to a Photon on the second node, so it automatically migrates itself to that node, but continues to use the modem you dialed in on (i.e. the modem on the first node). Since QNX is an inherently distributed operating system, this happens seamlessly and efficiently.