X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Fintegration%2Fdownload.texi;fp=doc%2Fintegration%2Fdownload.texi;h=c4ca2acc562db491b0c55a1c59986d2af851dc9c;hb=9d09491dd928ed16e357795d8818dbc9153a1d49;hp=0000000000000000000000000000000000000000;hpb=3f83210644b82fbe66a619f8ac2814fe96df623e;p=nncp.git diff --git a/doc/integration/download.texi b/doc/integration/download.texi new file mode 100644 index 0000000..c4ca2ac --- /dev/null +++ b/doc/integration/download.texi @@ -0,0 +1,40 @@ +@node DownloadService +@section Downloading service + +Previous sections tell about manual downloading and sending results to +remote node. But one wish to remotely initiate downloading. That can be +easily solved with @ref{CfgExec, exec} handles. + +@verbatim +exec: { + warcer: ["/bin/sh", "/path/to/warcer.sh"] + wgeter: ["/bin/sh", "/path/to/wgeter.sh"] + aria2c: [ + "/usr/local/bin/aria2c", + "--on-download-complete", "aria2-downloaded.sh", + "--on-bt-download-complete", "aria2-downloaded.sh" + ] +} +@end verbatim + +@file{warcer.sh} contents: + +@verbatiminclude warcer.sh + +@file{wgeter.sh} contents: + +@verbatiminclude wgeter.sh + +Now you can queue that node to send you some website's page, file or +BitTorrents: + +@example +$ echo http://www.nncpgo.org/Postfix.html | + nncp-exec remote.node warcer postfix-whole-page +$ echo http://www.nncpgo.org/Postfix.html | + nncp-exec remote.node wgeter postfix-html-page +$ echo \ + http://www.nncpgo.org/download/nncp-0.11.tar.xz + http://www.nncpgo.org/download/nncp-0.11.tar.xz.sig | + nncp-exec remote.node aria2c +@end example