iFix the download a music file example. - gopher-tutorials - The gopher tutorials project. Err bitreich.org 70 hgit clone git://bitreich.org/gopher-tutorials/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-tutorials/ URL:git://bitreich.org/gopher-tutorials/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-tutorials/ bitreich.org 70 1Log /scm/gopher-tutorials/log.gph bitreich.org 70 1Files /scm/gopher-tutorials/files.gph bitreich.org 70 1Refs /scm/gopher-tutorials/refs.gph bitreich.org 70 1Tags /scm/gopher-tutorials/tag bitreich.org 70 i--- Err bitreich.org 70 1commit e0c2aa8e2e2796b627b9053e6e4812519c41b57f /scm/gopher-tutorials/commit/e0c2aa8e2e2796b627b9053e6e4812519c41b57f.gph bitreich.org 70 1parent bacac60c92069254399bca491c31bf885588c48e /scm/gopher-tutorials/commit/bacac60c92069254399bca491c31bf885588c48e.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Sat, 15 Jun 2019 19:26:42 +0200 Err bitreich.org 70 i Err bitreich.org 70 iFix the download a music file example. Err bitreich.org 70 i Err bitreich.org 70 iThanks to leot and Evil_Bob! Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M cmdline.txt | 3 ++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/cmdline.txt b/cmdline.txt /scm/gopher-tutorials/file/cmdline.txt.gph bitreich.org 70 i@@ -21,7 +21,8 @@ another software (or using tee for both at the same time). Err bitreich.org 70 i The following example will download a music file, save it on the Err bitreich.org 70 i filesystem and play it with mpv while downloading. Err bitreich.org 70 i Err bitreich.org 70 i- printf "/some_music.ogg\r\n" | tee saved_music.ogg | mpv - Err bitreich.org 70 i+ printf "/some_music.ogg\r\n" | nc somedomain.com 70 \ Err bitreich.org 70 i+ | tee saved_music.ogg | mpv - Err bitreich.org 70 i Err bitreich.org 70 i You may have seen that the data type is not part of the request Err bitreich.org 70 i string, this is because it is only useful for the client to decide how Err bitreich.org 70 .