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