Mercurial > libervia-backend
comparison doc/libervia-cli/pipe.rst @ 3488:c80a0f864b5d
doc: updated doc following global renaming
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 Mar 2021 18:23:58 +0100 |
parents | doc/jp/pipe.rst@72583524cfd3 |
children | 4705f80b6e23 |
comparison
equal
deleted
inserted
replaced
3487:75427f0a5445 | 3488:c80a0f864b5d |
---|---|
1 ================================================== | |
2 pipe: send/receive data stream through shell pipes | |
3 ================================================== | |
4 | |
5 ``pipe`` commands allow you to send or receive data stream through a Unix shell pipe. | |
6 Salut à Toi will create a network connection (using XMPP and Jingle) between you an your | |
7 contact. | |
8 | |
9 in | |
10 == | |
11 | |
12 Receive data stream. Data will be send to stdout, so it can be piped out or simply print | |
13 to the screen. You can specify bare jids of entities to accept stream for, by default all | |
14 streams are accepted. | |
15 | |
16 example | |
17 ------- | |
18 | |
19 Receive a video stream, and redirect it to mpv_ so show the video:: | |
20 | |
21 $ li pipe in | mpv - | |
22 | |
23 .. _mpv: https://mpv.io/ | |
24 | |
25 out | |
26 === | |
27 | |
28 Send data stream. Data comes from stdin, so you may use pipe in something or just write | |
29 some text. | |
30 | |
31 The only expected argument is the full jid of the device where the stream must be piped | |
32 out. | |
33 | |
34 example | |
35 ------- | |
36 | |
37 Send a video to louise:: | |
38 | |
39 $ li pipe out louise@example.org/sat < some_video.webm | |
40 | |
41 Send output from ``cal`` command to louise:: | |
42 | |
43 $ cal | li pipe out louise@example.org/sat |