]> woffs.de Git - fd/haskell-amqp-utils.git/blob - doc/agitprop.rest
manpages
[fd/haskell-amqp-utils.git] / doc / agitprop.rest
1 <!--
2 SPDX-FileCopyrightText: 2022 Frank Doepper
3
4 SPDX-License-Identifier: FSFAP
5 -->
6
7 # EXAMPLES
8
9 Send a message containing a file and put the filename into a fileName
10 message header:
11
12     agitprop -x amq.topic -r test -F fileName -f agitprop.hs
13
14 Watch two directories dir1 and dir2 and send files from dir1 with routingkey r1
15 and files from dir2 with routingkey r2, ignoring everything which is not *.txt
16 or *.zip, and set Content-Type and Content-Encoding automatically, and move all
17 sent files to subdir "done" (dir1/done and dir2/done, respectively):
18
19     agitprop -x amq.topic -F fileName -m -S .txt -S .zip -d -udone -r r1 -f dir1 -r r2 -f dir2
20