Try Sample Commands

Note

You must complete the prior steps of network setup and Receptor installation for these commands to work.

  1. Show network status

receptorctl --socket /tmp/foo.sock status
  1. Ping node mal from node foo

receptorctl --socket /tmp/foo.sock ping mal
  1. Submit work from foo to mal and stream results back to foo

seq 10 | receptorctl --socket /tmp/foo.sock work submit --node mal echo --payload - -f
  1. List work units

receptorctl --socket /tmp/foo.sock work list --node foo
  1. Get work unit id using jq

receptorctl --socket /tmp/foo.sock work list --node foo | jq --raw-output '.|keys|first'
  1. Re-stream the work results from work unit

receptorctl --socket /tmp/foo.sock work results work_unit_id

Congratulations, Receptor is now ready to use!

See also

Control service commands

Control service commands

Creating a basic 3-node network

Creating a Basic Network

Installing Receptor

Installing Receptor