]> Cypherpunks.ru repositories - nncp.git/blob - doc/integration/download.texi
Add various documentation indices
[nncp.git] / doc / integration / download.texi
1 @node DownloadService
2 @cindex download service
3 @pindex warcer.sh
4 @pindex wgeter.sh
5 @section Downloading service
6
7 Previous sections tell about manual downloading and sending results to
8 remote node. But one wish to remotely initiate downloading. That can be
9 easily solved with @ref{CfgExec, exec} handles.
10
11 @verbatim
12 exec: {
13   warcer: ["/bin/sh", "/path/to/warcer.sh"]
14   wgeter: ["/bin/sh", "/path/to/wgeter.sh"]
15   aria2c: [
16     "/usr/local/bin/aria2c",
17     "--on-download-complete", "aria2-downloaded.sh",
18     "--on-bt-download-complete", "aria2-downloaded.sh"
19   ]
20 }
21 @end verbatim
22
23 @file{warcer.sh} contents:
24
25 @verbatiminclude warcer.sh
26
27 @file{wgeter.sh} contents:
28
29 @verbatiminclude wgeter.sh
30
31 Now you can queue that node to send you some website's page, file or
32 BitTorrents:
33
34 @example
35 $ echo http://www.nncpgo.org/Postfix.html |
36     nncp-exec remote.node warcer postfix-whole-page
37 $ echo http://www.nncpgo.org/Postfix.html |
38     nncp-exec remote.node wgeter postfix-html-page
39 $ echo \
40     http://www.nncpgo.org/download/nncp-0.11.tar.xz
41     http://www.nncpgo.org/download/nncp-0.11.tar.xz.sig |
42     nncp-exec remote.node aria2c
43 @end example