2 SPDX-FileCopyrightText: 2022 Frank Doepper
4 SPDX-License-Identifier: FSFAP
10 header: haskell-amqp-utils
11 footer: haskell-amqp-utils 0.6.5.0
16 arbeite - an AMQP RPC worker.
19 **arbeite** [*options*]
24 -X[EXE] --execute[=EXE] Callback Script File (implies -t) (-X without arg: /usr/lib/haskell-amqp-utils/callback)
25 -a ARG --args=ARG, --arg=ARG additional argument for -X callback
26 -t[DIR] --tempdir[=DIR], --target[=DIR] tempdir (default: no file creation, -t without arg: /tmp)
27 -f INT --prefetch=INT Prefetch count. (0=unlimited, 1=off, default: 1)
28 -A --ack Toggle ack messages (default: True)
29 -R --requeuenack Toggle requeue when rejected (default: True)
30 -l INT --charlimit=INT limit number of shown body chars (default: unlimited)
31 -q QUEUENAME --queue=QUEUENAME Ignore Exchange and bind to existing Queue
32 -i --simple call callback with one arg (filename) only
33 -j --cleanup Toggle remove tempfile after script call. Default False, but default True if --simple (-i)
34 -Q TEMPQNAME --qname=TEMPQNAME Name for temporary exclusive Queue
35 -x EXCHANGE --exchange=EXCHANGE AMQP Exchange (default: "")
36 -o SERVER --server=SERVER AMQP Server (default: localhost)
37 -y VHOST --vhost=VHOST AMQP Virtual Host (default: /)
38 -p PORT --port=PORT Server Port Number (default: 5672)
39 -T --tls Toggle TLS (default: False)
40 -c CERTFILE --cert=CERTFILE TLS Client Certificate File
41 -k KEYFILE --key=KEYFILE TLS Client Private Key File
42 -U USERNAME --user=USERNAME Username for Auth
43 -P PASSWORD --pass=PASSWORD Password for Auth
44 -s INT --heartbeats=INT heartbeat interval (0=disable, default: set by server)
45 -n NAME --name=NAME connection name, will be shown in RabbitMQ web interface
46 -w SECONDS --connect_timeout=SECONDS timeout for establishing initial connection (default: 600)
48 SPDX-FileCopyrightText: 2022 Frank Doepper
50 SPDX-License-Identifier: FSFAP
55 provide shell access to a remote user. Very insecure! :-)
57 arbeite -o amqp.example.com -T -k amqp.pem -c amqp.pem -y myexchange -Q rpctest -i -Xsh
60 SPDX-FileCopyrightText: 2022 Frank Doepper
62 SPDX-License-Identifier: FSFAP
68 `konsum` and `arbeite` can execute programs (`-Xprogram`) on reception of a message.
72 The callback is called with the following arguments:
87 Message headers are added through several -h options:
91 Any additional arguments provided by `-a arg` options are appended.
95 Wenn called with `-i` (`--simple`), the callback is called with only the filename
96 as argument. Any additional arguments provided by `-a arg` options are prepended.
100 The arguments provided in normal (old) mode are also available as environment
101 variables in both modes in the callback:
114 And the remaining message properties, too:
126 Message headers, if any, are available as