% nncp-exec [options] NODE HANDLE [ARG0 ARG1 ...]

Send execution command to NODE for specified HANDLE. Body is read from stdin and compressed. After receiving, remote side will execute specified handle command with ARG* appended and decompressed body fed to command’s stdin.

For example, if remote side has following configuration file for your node:

  sendmail: [/usr/sbin/sendmail, "-t"]
  appender: ["/bin/sh", "-c", "cat >> /append"]

then executing echo My message | nncp-exec -replynice 123 REMOTE sendmail root@localhost will lead to execution of:

echo My message |
    NNCP_SENDER=OurNodeId \
    NNCP_NICE=123 \
    /usr/sbin/sendmail -t root@localhost