2 @cindex download service
5 @section Downloading service
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.
13 warcer: ["/bin/sh", "/path/to/warcer.sh"]
14 wgeter: ["/bin/sh", "/path/to/wgeter.sh"]
16 "/usr/local/bin/aria2c",
17 "--on-download-complete", "aria2-downloaded.sh",
18 "--on-bt-download-complete", "aria2-downloaded.sh"
23 @file{warcer.sh} contents:
25 @verbatiminclude warcer.sh
27 @file{wgeter.sh} contents:
29 @verbatiminclude wgeter.sh
31 Now you can queue that node to send you some website's page, file or
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
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