# 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

2. Ping node baz from node foo

    receptorctl --socket /tmp/foo.sock ping baz

3. Submit work from foo to baz and stream results back to foo

    seq 10 | receptorctl --socket /tmp/foo.sock work submit --node baz echo --payload - -f

4. List work units

    receptorctl --socket /tmp/foo.sock work list --node foo

5. Get work unit id using jq

    receptorctl --socket /tmp/foo.sock work list --node foo | jq --raw-output '.|keys|first'

6. 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