Execute a command on another node or tty (QNX Neutrino)
on [-d] [-h] [-n|f nodename] [-p priority[policy]] [-s] [-t tty] [-u user | -l user_name] [-W nsec] [-w device] [command [args]]
Priorities are in the range from 0 through 255. Priority 0 is used for the idle thread; by default, priorities of 64 and greater are privileged, so only processes with an effective user ID of 0 (i.e. root) can use them. Non-root (and root) processes can use priorities from 1 through 63.
You can change the range of privileged priorities with the -P option for procnto.
The scheduling policy must be one of:
If you don't specify a command, the change applies to the parent process.
|You can repeat the -w and -W options on the command line. They're processed in the order given, before any other options.|
The on utility extends the process creation abilities of the shell (sh). You can start a process on a remote node, on a different controlling terminal, in a HELD state for debugging or later synchronized starting.
If the -d option isn't specified, a network connection is created as a local agent for the remote child process. When the child terminates, the parent must do a wait() on the created connection to reap the zombie process entry for the child. If the -d option is specified, the command is detached from its parent. The parent isn't able to do a wait() for the child, nor is it able to control it via signals.
By default, the command is run in the current session. The -t option starts a new session, which means the command won't receive a SIGHUP if the current session leader terminates.
|The on -t command becomes the new session leader on the tty specified, i.e. it receives SIGHUP generated by hangups on that tty. Any processes originally running on that tty don't get SIGHUP, and this condition persists even when the process started by on has terminated. For this reason, specify only ttys that aren't currently in use.|
Run login on console 2:
on -t con2 login
Run sort as an orphan on the node named peterv:
on -d -n peterv sort file.dat
The on utility exits with the exit status of command.
stat() in the Library Reference