2 @section Downloading service
4 Previous sections tell about manual downloading and sending results to
5 remote node. But one wish to remotely initiate downloading. That can be
6 easily solved with @ref{CfgExec, exec} handles.
10 warcer: ["/bin/sh", "/path/to/warcer.sh"]
11 wgeter: ["/bin/sh", "/path/to/wgeter.sh"]
13 "/usr/local/bin/aria2c",
14 "--on-download-complete", "aria2-downloaded.sh",
15 "--on-bt-download-complete", "aria2-downloaded.sh"
20 @file{warcer.sh} contents:
22 @verbatiminclude warcer.sh
24 @file{wgeter.sh} contents:
26 @verbatiminclude wgeter.sh
28 Now you can queue that node to send you some website's page, file or
32 $ echo http://www.nncpgo.org/Postfix.html |
33 nncp-exec remote.node warcer postfix-whole-page
34 $ echo http://www.nncpgo.org/Postfix.html |
35 nncp-exec remote.node wgeter postfix-html-page
37 http://www.nncpgo.org/download/nncp-0.11.tar.xz
38 http://www.nncpgo.org/download/nncp-0.11.tar.xz.sig |
39 nncp-exec remote.node aria2c