Try Sample Commands
Note
You must complete the prior steps of network setup and Receptor installation for these commands to work.
Show network status
receptorctl --socket /tmp/foo.sock status
Ping node mal from node foo
receptorctl --socket /tmp/foo.sock ping mal
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
List work units
receptorctl --socket /tmp/foo.sock work list --node foo
Get work unit id using jq
receptorctl --socket /tmp/foo.sock work list --node foo | jq --raw-output '.|keys|first'
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